user()->update(['is_notification_realtime_enabled' => false]); $this->showNotification = false; } public function mount() { $this->isNotificationEnabled = auth()->user()->is_notification_realtime_enabled; $this->checkConnection = auth()->user()->id === 0; } }