protected function getLoggedInUserId() { try { if (Auth::check()) { return Auth::user()->getAuthIdentifier(); } } catch (\Exception $e) { return; } }