use CubistMagicAttribute;
protected $_attributes;
protected $_rules = [];
+ protected $_columnType = 'text';
protected $_adminType = 'text';
protected $_databaseType = 'text';
protected $_cast = false;
{
return ['type' => $this->_adminType, 'column' => false, 'form' => 'both', 'rules' => '',
'fillable' => true, 'guarded' => false, 'hidden' => false, 'translatable' => $this->_translatable,
- 'column_type' => 'text', 'default' => '', 'cast' => $this->_cast, 'fake' => false, 'store_in' => false];
+ 'column_type' => $this->_columnType, 'default' => '', 'cast' => $this->_cast, 'fake' => false, 'store_in' => false];
}
public function __construct($attributes)
{
$res = [
'name' => $this->getAttribute('name'),
- 'type' => $this->getAttribute('column_type', $this->getAttribute('type')),
+ 'type' => $this->getAttribute('column_type'),
'label' => $this->getAttribute('column_label', $this->getAttribute('label'))
];