如果不是这个怎么办:
<?php // resources/lang/en/permissions.php
return [
'deactivate_users' => 'Deactivate users',
'activate_users' => 'Activate users',
];
...我将这样做:
<?php // resources/lang/en/permissions.php
use App\Core\Utils\Permissions;
return [
Permissions::DEACTIVATE_USERS => 'Deactivate users',
Permissions::ACTIVATE_USERS => 'Activate users',
];
它似乎正以这种方式工作。但是我可能缺少任何性能问题吗?