23 lines
485 B
PHP
23 lines
485 B
PHP
<?php
|
|
|
|
namespace Encore\Admin\Config;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ConfigModel extends Model
|
|
{
|
|
/**
|
|
* Settings constructor.
|
|
*
|
|
* @param array $attributes
|
|
*/
|
|
public function __construct($attributes = [])
|
|
{
|
|
parent::__construct($attributes);
|
|
|
|
$this->setConnection(config('admin.database.connection') ?: config('database.default'));
|
|
|
|
$this->setTable(config('admin.extensions.config.table', 'admin_config'));
|
|
}
|
|
}
|