| 1 | <?php |
||
| 10 | class AppServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Bootstrap any application services. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | 162 | public function boot() |
|
| 18 | { |
||
| 19 | // Ensure installation is not in progress |
||
| 20 | 162 | if (!strpos(url()->current(), 'install')) { |
|
| 21 | 162 | DBConfigs::execute(); |
|
| 22 | } |
||
| 23 | |||
| 24 | 162 | Setting::saving(function ($setting) { |
|
| 25 | 10 | Cache::forever($setting->key, $setting->value); |
|
| 26 | 162 | }); |
|
| 27 | 162 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Register any application services. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | 162 | public function register() |
|
| 40 | } |
||
| 41 |