/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $articles = Article::all(); return view('admin.index', ['articles' => $articles]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $articles = Article::all(); return view("admin.article.index", compact("articles")); }