user()); } /** Same as customer(), but tells the user why nothing happened. */ protected function requireCustomer(): ?Customer { $customer = $this->customer(); if ($customer === null) { $this->dispatch('notify', message: __('dashboard.no_customer_action')); } return $customer; } }