我有模特:
use seoTrait;
protected $fillable = [
'name', 'title', 'description'
];
Run Code Online (Sandbox Code Playgroud)
我在$ fillable中创建了需要"seoMeta"的特质"seoTrait".
现在我补充说:
protected $fillable = [
'name', 'title', 'description', 'seoMeta'
];
Run Code Online (Sandbox Code Playgroud)
但是有可能在特质"seoTrait"中添加一些东西给$ fillable吗?