Fetch operation using laravel

A. Method - 1 $users = DB::table('users')->get(); return view('user.index',['users'=>$users]); B. Method - 2 $users = DB::table('users')->get(); foreach ($users as $user) { echo $user->name; } C. Method - 3 $user =…

0 Comments

Insert operation using laravel

$query = DB::table('busness_entity_information')->insert([                   'email' => 'kayla@example.com',                   'votes' => 0                 ]);

0 Comments

Get day and date using php

Date and time are some of the most frequently used operations in PHP while executing SQL queries or designing a website etc. PHP serves us with predefined functions for these…

0 Comments

Jquery Owl Carousel

Basic usage of Owl Carousel. I used loop:true and margin:10. The structure works with any kind of DOM element. In all of my examples i used <div class="item">...</div> but you could put any other element div/span/a/img...…

0 Comments

Mega menu in wordpress

Download max mega menu plugin and install and activate it. Go to Appearance -> Menus. Find max mega menu setting option at the left side of the page. Tick and…

0 Comments