转自:https://blog.csdn.net/weixin_34254823/article/details/86001422
在使用: 模型:create时报错, Add [name] to fillable property to allow mass assignment on [App\AdminUser].,因为extends Authenticatable而不是app<a class=“hl hl-1” href=“https://so.csdn.net/so/search?q=model&spm=1001.2101.3001.7020" target="_blank” rel=“noopener” data-report-click="{"spm":"1001.2101.3001.7020","dest":"https://so.csdn.net/so/search?q=model&spm=1001.2101.3001.7020"}" data-tit=“model” data-pretit=“model”>model,
需要在 AdminUser模型中添加protected $guarded = [];//不可以注入数据字段
评论 (0)