app/Http/Controllers/Admin/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()
    {
        $categories = Category::orderBy('name', 'ASC')->pluck('name', 'id');
        $tags       = Tag::orderBy('name','ASC')->get();
        return view('admin.posts.create', compact('categories', 'tags'));
    }
public function create ( ) { $ categories = Category :: orderBy ( 'name' , 'ASC' ) -> pluck ( 'name' , 'id' ) ; $ tags = Tag :: orderBy ( 'name' , 'ASC' ) -> get ( ) ; return view ( 'admin.posts.create' , compact ( 'categories' , 'tags' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .