| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class SettingsServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Register services. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | 750 | public function register() |
|
| 18 | { |
||
| 19 | 750 | if(Schema::hasTable('settings')) |
|
| 20 | { |
||
| 21 | 750 | $settings = DB::table('settings')->get(); |
|
| 22 | 750 | foreach($settings as $setting) |
|
| 23 | { |
||
| 24 | Config([$setting->key => $setting->value]); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | 750 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Bootstrap services. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | 750 | public function boot() |
|
| 36 | // |
||
| 37 | 750 | } |
|
| 39 |