authenticatedUser = Auth::user(); } /** * Get the model that has fired this event. * * @return TModel&Nameable */ abstract public function getModel(): Model&Nameable; /** * Get the user that fired this event. * * @return User|null */ protected function getAuthenticatedUser(): ?User { return $this->authenticatedUser; } /** * Get the user info for the footer. * * @return array */ protected function getUserFooter(): array { if (is_null($this->getAuthenticatedUser())) { return []; } return [ 'footer' => [ 'text' => $this->getAuthenticatedUser()->getName(), 'icon_url' => $this->getAuthenticatedUser()->getFilamentAvatarUrl(), ] ]; } }