Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PanelAdmin extends Model |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Create a new Eloquent model instance. |
||
14 | * |
||
15 | * @param array $attributes |
||
16 | */ |
||
17 | public function __construct(array $attributes = []) |
||
18 | { |
||
19 | $connection = config('easy_panel_config.database.connection') ?: config('database.default'); |
||
20 | |||
21 | $this->setConnection($connection); |
||
22 | |||
23 | $this->setTable(config('easy_panel_config.database.panel_admin_table')); |
||
24 | |||
25 | parent::__construct($attributes); |
||
26 | } |
||
27 | |||
28 | protected $guarded = []; |
||
29 | |||
30 | public function user() |
||
33 | } |
||
34 | } |
||
35 |