Add showRff method to ClientContact model

This commit is contained in:
Benjamin Beganović 2024-01-31 18:47:21 +01:00
parent 3168150171
commit ea6be8d698

View File

@ -351,5 +351,12 @@ class ClientContact extends Authenticatable implements HasLocalePreference
return config('ninja.react_url')."/#/clients/{$this->client->hashed_id}";
}
public function showRff(): bool
{
if (\strlen($this->first_name) === 0 || \strlen($this->last_name) === 0 || \strlen($this->email) === 0) {
return true;
}
return false;
}
}