app/Http/Controllers/Admin/PostController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Post  $post
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Post $post)
    {
        $categories = Category::all();
        $tags = Tag::all();
        return view('admin.posts.edit', compact(['post', 'categories', 'tags']));
    }
public function edit ( Post $ post ) { $ categories = Category :: all ( ) ; $ tags = Tag :: all ( ) ; return view ( 'admin.posts.edit' , compact ( [ 'post' , 'categories' , 'tags' ] ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .