| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class AppSettingsServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Register services. |
||
| 13 | */ |
||
| 14 | 279 | public function register() |
|
| 15 | { |
||
| 16 | /* |
||
| 17 | * All App Settings that can be adjusted are stored in the database - retrieve them here and assign to the config |
||
| 18 | */ |
||
| 19 | 279 | if(Schema::hasTable('app_settings')) |
|
| 20 | { |
||
| 21 | 279 | $settings = DB::table('app_settings')->get(); |
|
| 22 | 279 | foreach($settings as $setting) |
|
| 23 | { |
||
| 24 | config([$setting->key => $setting->value]); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | 279 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Bootstrap services. |
||
| 31 | */ |
||
| 32 | 279 | public function boot() |
|
| 34 | // |
||
| 35 | 279 | } |
|
| 37 |