app/Http/Controllers/DashboardPostController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\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)
    {
        return view('dashboard.posts.edit', [
            'post' => $post,
            'categories' => Category::all()
        ]);  
    }
public function edit ( Post $ post ) { return view ( 'dashboard.posts.edit' , [ 'post' => $ post , 'categories' => Category :: all ( ) ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .