/** * Show the form for editing the specified resource. * * @param Post $post * @return \Illuminate\View\View */ public function edit(Post $post) { $thumbnail = $this->file->findFileByZoneForEntity('thumbnail', $post); $categories = $this->category->allTranslatedIn(app()->getLocale()); $statuses = $this->status->lists(); return view('blog::admin.posts.edit', compact('post', 'categories', 'thumbnail', 'statuses')); }
/** * Show the form for editing the specified resource. * * @param Gallery $gallery * @return Response */ public function edit(Gallery $gallery, FileRepository $fileRepository) { $image = $fileRepository->findFileByZoneForEntity('image', $gallery); return view('gallery::admin.galleries.edit', compact('gallery', 'image')); }
/** * Show the form for editing the specified resource. * * @param Podcast $podcast * @return Response */ public function edit(Podcast $podcast, FileRepository $fileRepository) { $audioFile = $fileRepository->findFileByZoneForEntity('audioFile', $podcast); return view('podcast::admin.podcasts.edit', compact('podcast', 'audioFile')); }
/** * Show the form for editing the specified resource. * * @param Recipe $recipe * @return Response */ public function edit(Recipe $recipe) { $galleryFiles = $this->file->findMultipleFilesByZoneForEntity('gallery', $recipe); $featured_image = $this->file->findFileByZoneForEntity('featured_image', $recipe); return view('recipe::admin.recipes.edit', compact('recipe', 'galleryFiles', 'featured_image')); }