* @property string $system_name
* @property Collection $roles
* @property Collection $mfaValues
+ * @property ?Image $avatar
*/
class User extends Model implements AuthenticatableContract, CanResetPasswordContract, Loggable, Sluggable
{
*/
public function can(string $permissionName): bool
{
- if ($this->email === 'guest') {
- return false;
- }
-
return $this->permissions()->contains($permissionName);
}