mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
separate route permission + token manage
This commit is contained in:
@@ -13,7 +13,7 @@ class PersonalAccessToken extends SanctumPersonalAccessToken
|
||||
$result = [];
|
||||
foreach ($this->abilities as $ability) {
|
||||
if ($ability != '*') {
|
||||
$result[] = nexus_trans("permission.{$ability}.text");
|
||||
$result[] = nexus_trans("route-permission.{$ability}.text");
|
||||
}
|
||||
}
|
||||
return implode(', ', $result);
|
||||
|
||||
Reference in New Issue
Block a user