middleware('auth'); } public function notifications(Request $request) { $user = Auth::user(); $profile = $user->profile; return view('account.activity', compact('profile')); } }