示例#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);
 }
示例#2
0
文件: Model.php 项目: arcanesoft/blog
 /**
  * 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);
 }