laravel query where id = 1 not fetching data code example Example: DB::table('users')->get(); $users = DB::table('users')->get();