| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class AppServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Register any application services. |
||
| 12 | */ |
||
| 13 | public function register(): void |
||
| 14 | { |
||
| 15 | // |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Bootstrap any application services. |
||
| 20 | */ |
||
| 21 | public function boot(): void |
||
| 22 | { |
||
| 23 | // app()->usePublicPath(__DIR__.'/public'); |
||
| 24 | |||
| 25 | Schema::defaultStringLength(190); |
||
| 26 | |||
| 27 | // Force redirect to HTTPS. |
||
| 28 | $url = $this->app['url']; |
||
| 29 | if($this->app->environment('production')) |
||
| 30 | { |
||
| 31 | $url->forceScheme('https'); |
||
| 32 | } |
||
| 35 |