问答 / 0 / 3 / 创建于 6年前
在课程2论坛项目里面的权限控制,为什么我按照教程上的做完了,但是发现用户不能编辑自己的个人资料? 也是提示未授权,有人注意过吗 ?
UserRequest 类的 authorize 方法,返回的是否为 true ?
UserRequest
authorize
true
一个细节 app/Policies/UserPolicy.php 将 __construct 改为 update
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
我要举报该,理由是:
推荐文章: