/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $game = Game::findOrFail($id); $game->delete(); return redirect()->route('games.index')->with('message', 'Usunieto z sukcesem.'); }
/** * Gets the desired model. * * @param $id * * @throws Illuminate\Database\Eloquent\ModelNotFoundException * * @return Model */ public function get($id) { return Game::findOrFail($id); }