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