keywordController
parent
01f0cc3a67
commit
40a262983e
|
|
@ -61,7 +61,7 @@ class KeywordController extends AdminController
|
|||
amis()->TextControl()->name('key')->label(__('keywords.key'))->required(true),
|
||||
amis()->TextControl()->name('value')->label(__('keywords.value')),
|
||||
amis()->ImageControl()->name('image')->label(__('keywords.image'))->autoUpload(true),
|
||||
amis()->ImageControl()->name('images')->label(__('keywords.images'))->multiple()->autoUpload(true),
|
||||
amis()->ImageControl()->name('images')->label(__('keywords.images'))->multiple()->autoUpload(true)->joinValues(false)->extractValue(true),
|
||||
amis()->NumberControl()->min(0)->precision(0)->name('sort')->label(__('keywords.sort')),
|
||||
amis()->TextareaControl()->name('description')->label(__('keywords.description')),
|
||||
amis()->inputKV()->name('options')->label(__('keywords.options')),
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class Keyword extends Model
|
|||
|
||||
// protected $guarded = [];
|
||||
|
||||
protected $fillable = ['id', 'name', 'key', 'value', 'parent_id', 'path', 'sort', 'options', 'image', 'images', 'description', 'content'];
|
||||
protected $fillable = ['name', 'key', 'value', 'parent_id', 'path', 'sort', 'options', 'image', 'images', 'description', 'content'];
|
||||
|
||||
protected $casts = [
|
||||
'options' => 'array',
|
||||
|
|
|
|||
Loading…
Reference in New Issue