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