Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ModelSettingsServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | 234 | public function boot() |
|
12 | { |
||
13 | 234 | if ($this->app->runningInConsole()) { |
|
14 | 234 | $this->commands([ |
|
15 | 234 | CreateSettingsFieldForModel::class, |
|
16 | CreateSettingsTable::class, |
||
17 | ]); |
||
18 | } |
||
19 | |||
20 | 234 | $this->publishes([ |
|
21 | 234 | __DIR__ . '/../config/model_settings.php' => config_path('model_settings.php'), |
|
22 | ]); |
||
23 | 234 | } |
|
24 | |||
25 | 234 | public function register() |
|
28 | 234 | } |
|
29 | } |
||
30 |