/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(AdminRequest $request, $id) { $data['event'] = Event::with('venue', 'tags')->withHidden()->findOrFail($id); $data['venues'] = Venue::orderBy('name')->get(); $data['tags'] = Tag::orderBy('name')->get(); return view('events.edit', $data); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(AdminRequest $request, $id) { $data['organization'] = Organization::with('tags')->withHidden()->findOrFail($id); $data['tags'] = Tag::orderBy('name')->get(); return view('organizations.edit', $data); }