- 在 SyncAdminAuthorizationCommand 中新增对代理和抽奖菜单操作的同步功能,确保缺失的菜单操作行能够被创建。 - 更新多个控制器中的权限检查逻辑,使用 hasPermissionCode 替代原有的权限验证方式,提升权限管理的灵活性。 - 引入 ApiMessage 统一错误响应格式,确保在权限不足时返回一致的错误信息。 - 更新 AdminRole 和 AdminUser 模型,增强角色与用户的权限管理功能,支持更细粒度的权限控制。
55 lines
2.5 KiB
PHP
55 lines
2.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
'accepted' => 'You must accept :attribute.',
|
|
'array' => ':attribute must be a list.',
|
|
'boolean' => ':attribute must be true or false.',
|
|
'confirmed' => ':attribute confirmation does not match.',
|
|
'date' => ':attribute must be a valid date.',
|
|
'date_format' => ':attribute must match the format :format.',
|
|
'email' => ':attribute must be a valid email address.',
|
|
'exists' => 'The selected :attribute is invalid or unavailable.',
|
|
'filled' => ':attribute must have a value.',
|
|
'in' => 'The selected :attribute is invalid.',
|
|
'integer' => ':attribute must be an integer.',
|
|
'json' => ':attribute must be valid JSON.',
|
|
'max' => [
|
|
'array' => ':attribute may not have more than :max items.',
|
|
'numeric' => ':attribute may not be greater than :max.',
|
|
'string' => ':attribute may not exceed :max characters.',
|
|
],
|
|
'min' => [
|
|
'array' => ':attribute must have at least :min items.',
|
|
'numeric' => ':attribute must be at least :min.',
|
|
'string' => ':attribute must be at least :min characters.',
|
|
],
|
|
'not_in' => 'The selected :attribute is invalid.',
|
|
'not_regex' => ':attribute format is invalid.',
|
|
'numeric' => ':attribute must be a number.',
|
|
'present' => ':attribute must be present.',
|
|
'prohibited' => ':attribute is not allowed.',
|
|
'regex' => ':attribute format is invalid.',
|
|
'required' => ':attribute is required.',
|
|
'required_if' => ':attribute is required when :other is :value.',
|
|
'required_with' => ':attribute is required when :values is present.',
|
|
'required_with_all' => ':attribute is required when :values are present.',
|
|
'required_without' => ':attribute is required when :values is not present.',
|
|
'same' => ':attribute must match :other.',
|
|
'size' => [
|
|
'array' => ':attribute must contain :size items.',
|
|
'numeric' => ':attribute must be :size.',
|
|
'string' => ':attribute must be :size characters.',
|
|
],
|
|
'string' => ':attribute must be text.',
|
|
'unique' => ':attribute is already taken.',
|
|
'url' => ':attribute must be a valid URL.',
|
|
'uuid' => ':attribute must be a valid UUID.',
|
|
'between' => [
|
|
'array' => ':attribute must have between :min and :max items.',
|
|
'numeric' => ':attribute must be between :min and :max.',
|
|
'string' => ':attribute must be between :min and :max characters.',
|
|
],
|
|
'after_or_equal' => ':attribute must be on or after :date.',
|
|
'distinct' => ':attribute has a duplicate value.',
|
|
];
|