#getUserName(): Return value must be of type string, null returned
1 messages · Page 1 of 1 (latest)
getUserName(): Return value must be of type string, null returned
User Model
public function getFilamentName(): string
{
return $this->username ?: 'Unknown User';
}
ERROR
Filament\FilamentManager::getUserName(): Return value must be of type string, null returned
did you add implement the HasName contract
https://filamentphp.com/docs/3.x/panels/users#configuring-the-users-name-attribute