'label' => 'Model table name',
'column' => true], 'create');
$this->addField(['type' => 'text', 'name' => 'label', 'label' => 'Model label', 'column' => true], 'both');
- $this->addField(['type' => 'textarea', 'name' => 'attributes', 'label' => 'Fields definitions'], 'both');
+ $this->addField(['type' => 'textarea', 'name' => 'fields', 'label' => 'Fields definitions'], 'both');
// add asterisk for fields that are required in ModelRequest
$this->crud->setRequiredFields(StoreRequest::class, 'create');
// protected $primaryKey = 'id';
// public $timestamps = false;
// protected $guarded = ['id'];
- protected $fillable = ['name', 'label', 'attributes'];
+ protected $fillable = ['name', 'label', 'fields'];
// protected $hidden = [];
// protected $dates = [];