Add showRff method to ClientContact model
This commit is contained in:
parent
3168150171
commit
ea6be8d698
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue