app/Http/Controllers/DashboardPostController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        return view('dashboard.posts.create', [
            'categories' => Category::all()
        ]);  
    }
public function create ( ) { return view ( 'dashboard.posts.create' , [ 'categories' => Category :: all ( ) ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .