Laravel模型可填写问题

时间:2018-02-22 16:15:58

标签: laravel model

我有模型用户我写了可填写的字段:

protected $fillable = ['name', 'photo','color', 'email','admin','jobtitle','phone','mobile','restaurant','address','address2','city','state','zip','country','url','twitter','facebook','capacity','email_for_invoices','vat', 'test', 'type','tos','vatrate','lat','lng','booking','validity', 'photobg','viaurl', 'subdomain','sample_menu','sample_menu_url'];

但是当我做return $user

作为回应我得到了:

enter image description here

所有字段都不可填写(等等' test')?为什么? Laravel模型是否限制在30个可填写的字段中?或其他什么让我有问题?

0 个答案:

没有答案