app/Http/Controllers/PostController.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()
    {
        $cats = Category::all();
        return view('post.create',['cats'=>$cats]);
    }
public function create ( ) { $ cats = Category :: all ( ) ; return view ( 'post.create' , [ 'cats' => $ cats ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .