loadMissing('notifications'); } public function notifications() { $notifications = auth()->user()->unreadNotifications()->paginate(10); return response()->json(['notifications'=> $notifications], 200); } }