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