/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(Studio $studio, Event $event) { $artists = Artist::all()->lists('name', 'id'); $pieces = Piece::lists('title', 'id')->all(); $event->date = $event->starts->format('Y-m-d'); $event->startTimeField = $event->starts->format('H:i'); $event->endTimeField = $event->ends->format('H:i'); return view('admin.studio.events.edit', compact('studio', 'event', 'artists', 'pieces')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Studio $studio, Event $event) { $pieces = Piece::lists('title', 'id'); $categories = Category::lists('name', 'id'); return view('admin.studios.events.edit', compact('studio', 'event', 'pieces', 'categories')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(Image $image) { $pieces = Piece::lists('title', 'id')->all(); $artists = Artist::all()->lists('name', 'id'); return view('admin.images.edit', compact('image', 'pieces', 'artists')); }