/** * Remove the specified resource from storage. * * @param Tournament $tournament * @return Response */ public function destroy(Tournament $tournament) { $tournament->delete(); session()->flash('status', 'Tournament has been deleted!'); return redirect('tournament'); }
/** * Display a listing of the resource. * * @param Tournament $tournament * @return Response */ public function index(Tournament $tournament) { $games = $tournament->games()->get()->toArray(); return view('tournament.game.index', compact('tournament', 'games')); }