public function edit(Post $post)
    {
        $this->authorize(PostsPolicy::PERMISSION_UPDATE);

        $this->setTitle($title = trans('blog::posts.titles.edit-post'));
        $this->addBreadcrumb($title);

        $categories = Category::getSelectData();
        $tags       = Tag::getSelectData();
        $statuses   = Post::getStatuses();

        return $this->view('admin.posts.edit', compact('post', 'categories', 'tags', 'statuses'));
    }
public function edit(Post $post)
    {
        $this->authorize(PostsPolicy::PERMISSION_UPDATE);

        $this->setTitle($title = trans('blog::posts.titles.edit-post'));
        $this->addBreadcrumb($title);

        $categories = Category::getSelectData();
        $tags       = Tag::getSelectData();
        $statuses   = Post::getStatuses();

        return $this->view('admin.posts.edit', compact('post', 'categories', 'tags', 'statuses'));
    }
public function edit ( Post $ post ) { $ this -> authorize ( PostsPolicy :: PERMISSION_UPDATE ) ; $ this -> setTitle ( $ title = trans ( 'blog::posts.titles.edit-post' ) ) ; $ this -> addBreadcrumb ( $ title ) ; $ categories = Category :: getSelectData ( ) ; $ tags = Tag :: getSelectData ( ) ; $ statuses = Post :: getStatuses ( ) ; return $ this -> view ( 'admin.posts.edit' , compact ( 'post' , 'categories' , 'tags' , 'statuses' ) ) ; }
Edit a post.

@param  \Arcanesoft\Blog\Models\Post  $post

@return \Illuminate\View\View
Edit a post .