摘要: 授权用户是否可以执行某个动作 方法1: 可以通过编写Gates进行定义 在App\Providers\AuthServiceProvider文件中的boot方法中: public function boot() { $this->registerPolicies(); Gate::define('u 阅读全文
posted @ 2021-05-25 16:09 小林不会飞 阅读(1842) 评论(0) 推荐(0) 编辑