【发布时间】:2018-02-18 07:20:03
【问题描述】:
Laravel 允许我们授权或不授权通过 authorize method 处理 FormRequest。如果请求未被授权,它将通过\Illuminate\Auth\Access\AuthorizationException 异常,并带有一条消息:
此操作未经授权。
有没有办法自定义这条消息?
看到我想自定义消息本身。 Customizing the error messages of attributes我知道有可能!
【问题讨论】:
标签: php laravel laravel-5 laravel-authorization