Change File model to use fillable as opposed to guardable attributes
This commit is contained in:
parent
0ce104b169
commit
abfe156d8d
|
|
@ -20,6 +20,26 @@ class File extends FileBase
|
|||
*/
|
||||
protected $table = 'system_files';
|
||||
|
||||
/**
|
||||
* @var array The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = [
|
||||
'file_name',
|
||||
'title',
|
||||
'description',
|
||||
'field',
|
||||
'attachment_id',
|
||||
'attachment_type',
|
||||
'is_public',
|
||||
'sort_order',
|
||||
'data',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array The attributes that aren't mass assignable.
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue