public function viewAll() { $games = Game::getAll(); return view('games', ['games' => $games]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $all_games = \App\Models\Game::getAll(); $user_games = \App\Models\Game::getGamesByUser(Auth::user()->id); return view('games.index', compact('all_games', 'user_games')); }