add scramble

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

No files matched your search

+12
View File
@@ -90,6 +90,18 @@ public function withoutRole(): bool
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.
*/