| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.072 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 37 |