app/Http/Controllers/AdminPostsController.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::lists('name', 'id')->all();
         NOTE: some names wont work
        return view('admin.posts.create', compact('categories'));
    }
public function create ( ) { $ categories = Category :: lists ( 'name' , 'id' ) -> all ( ) ; return view ( 'admin.posts.create' , compact ( 'categories' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// // NOTE: some names wont work /*
            / 'duša logo.jpg' for example
            /
            */