app/Http/Controllers/ArticleController.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()
    {
        $data['categories'] = Category::get();
        return view('admins.articles.createOrUpdate')->with($data);
    }
public function create ( ) { $ data [ 'categories' ] = Category :: get ( ) ; return view ( 'admins.articles.createOrUpdate' ) -> with ( $ data ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .