laravel query builder value for each row code example Example: DB::table('users')->get(); $users = DB::table('users')->get();