/** * Show the form for editing the specified resource. * * @param int $id * * @return \Illuminate\Http\Response */ public function edit(City $city, Event $event) { $colorSchemes = ColorScheme::listRaw(); $icons = Icon::orderBy('created_at', 'desc')->get(); $categories = Category::where('city_id', $city->id)->orderBy('title', 'asc')->lists('title', 'id'); return view('events.edit', compact('event', 'categories', 'colorSchemes', 'icons')); }