会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小林不会飞
博客园
首页
新随笔
联系
订阅
管理
2021年5月25日
laravel策略(this action is unauthorized)
摘要: 授权用户是否可以执行某个动作 方法1: 可以通过编写Gates进行定义 在App\Providers\AuthServiceProvider文件中的boot方法中: public function boot() { $this->registerPolicies(); Gate::define('u
阅读全文
posted @ 2021-05-25 16:09 小林不会飞
阅读(1842)
评论(0)
推荐(0)
编辑
公告