/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $result = Result::findOrFail($id); return view('results.show')->with('result', $result)->with('title', trans('titles.results_of_the_test')); }
public function destroy_entry($id) { $entry = Result::findOrFail($id); $del_id = $entry->competitiongroup_id; $entry->delete(); return redirect('admin/competitiongroups/' . $del_id . '/entry')->with('status', 'Nevezés törölve'); }