Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您还必须将该属性添加到ModelClass的
$填充
数组中。另外,您只需要做:
注意只有在不打算大规模分配用户输入的情况下才能使用最后一个选项,以免受到注射攻击。
You also have to add that property to the
$fillable
array of the Modelclass.Alternatively, you can just do:
Note The last option should only be used if you're not going to be mass assigning user input, so that you don't suffer injection attacks.