laravel each from query code example
Example 1: DB::table('users')->get();
$users = DB::table('users')->get();
Example 2: DB::table('users')->get();
DB::select('select * from users ');
$users = DB::table('users')->get();
DB::select('select * from users ');