use Cviebrock\EloquentSluggable\Sluggable;
use Cviebrock\EloquentSluggable\SluggableScopeHelpers;
use Doctrine\DBAL\Schema\Schema;
-use Doctrine\DBAL\Schema\Table;
use Illuminate\Database\Eloquent\Model;
use Cubist\Backpack\app\Magic\CubistMagicAttribute;
use Illuminate\Support\Str;
class CubistMagicModelAbstract extends Model
{
use CubistMagicAttribute;
- use CrudTrait, NestedModelTrait;
+ use NestedModelTrait;
use Sluggable, SluggableScopeHelpers;
protected static $_doctrineTypesMapping = ['int' => 'integer'];
$table->setPrimaryKey([$this->primaryKey], 'pk_' . $this->table);
-
foreach ($this->_fields as $field) {
$field->defineDbColumn($table);
}