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
Was this page helpful?