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