/** * {@inheritdoc} */ public function __construct(array $attributes = []) { $configs = config('arcanesoft.settings.database'); $this->setConnection(array_get($configs, 'connection', null)); $this->setTable(array_get($configs, 'table', 'settings')); parent::__construct($attributes); }
/** * Create a new Eloquent model instance. * * @param array $attributes */ public function __construct(array $attributes = []) { $this->prefix = config('arcanesoft.blog.database.prefix', null); parent::__construct($attributes); }