Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 /**
  * Get the post status
  * @return string
  */
 public function status()
 {
     return $this->status->get($this->entity->status);
 }