add scramble

This commit is contained in:
2024-09-02 22:25:54 +05:00
parent fb861daf01
commit dac9b6fab9
5 changed files with 223 additions and 1 deletions

View File

@@ -90,6 +90,18 @@ class User extends Authenticatable
return $this->roles->count() === 0;
}
/**
* Check if user can access api docs
*/
public function canAccessApiDocs(): bool
{
return in_array($this->email, [
'nurmuhammet@mail.com',
'mahmyt1206@gmail.com',
'api@mail.com',
]);
}
/**
* Check if user is me.
*/