$this->_plural = $this->_singular . 's';
}
+ if ($this->_clonable) {
+ $this->crud->allowAccess('clone');
+ }
+
/*
|--------------------------------------------------------------------------
| CrudPanel Basic Information
protected $primaryKey = 'id';
public $timestamps = true;
+ public $clonable = true;
/**
* @var Field[]
'PLURAL' => $this->getOption('plural', ''),
'MODELNAMESPACE' => get_class($this),
'EXTENDS' => $this->_getBaseController(),
+ 'CLONABLE' => $this->clonable ? 'true' : 'false'
];
$res = file_get_contents($stub);