22 lines
383 B
PHP
22 lines
383 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Routing\UrlGenerator;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function boot(UrlGenerator $url): void
|
|
{
|
|
if (env('APP_ENV') == 'production') {
|
|
$url->forceScheme('https');
|
|
}
|
|
}
|
|
}
|