complete story 1.3 with qa test & added future recommendations to the dev
This commit is contained in:
@@ -109,6 +109,14 @@ class User extends Authenticatable
|
||||
return $this->isIndividual() || $this->isCompany();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is active.
|
||||
*/
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->status === UserStatus::Active;
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope to filter admin users.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user