how to get 3 database table rows from in laravel code example Example: DB::table('users')->get(); id 1 $users = DB::table('users')where('id','=', $userid)->get();