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()
    {
        $articles = Article::all(); 
        return view('admin.article.create',[
            'articles' => $articles
        ]);
    }
public function create ( ) { $ articles = Article :: all ( ) ; return view ( 'admin.article.create' , [ 'articles' => $ articles ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// lấy toàn bộ dữ liệu