/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $team = Team::findOrFail($id); $events = Helpers::getEvents(); return view('admin.pages.teams.edit', compact('team', 'events')); }