Change File model to use fillable as opposed to guardable attributes

This commit is contained in:
Ben Thomson 2020-08-10 09:07:24 +08:00
parent 0ce104b169
commit abfe156d8d
No known key found for this signature in database
GPG Key ID: E2B9C73B52D15AA0
1 changed files with 20 additions and 0 deletions

View File

@ -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}
*/