/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $projects = Project::all(); return view('projects.index')->with('projects', $projects); }