select as in laravel code example
Example 1: laravel db inserr
$id = DB::table('users')->insertGetId(
['email' => '[email protected]', 'votes' => 0]
);
Example 2: DB::table('users')->get();
DB::select('select * from users ');
$id = DB::table('users')->insertGetId(
['email' => '[email protected]', 'votes' => 0]
);
DB::select('select * from users ');