public function destroy_team_entry($id) { $team = Results_team::findOrFail($id); $del_id = $team->competitiongroup_id; $team->delete(); return redirect('admin/competitiongroups/' . $del_id . '/entry/teams_entry')->with('status', 'Nevezés törölve'); }