Esempio n. 1
0
 /**
  * {@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);
 }
Esempio n. 2
0
 /**
  * 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);
 }