34 lines
593 B
PHP
34 lines
593 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Illuminate\Support\Facades\URL;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
|
|
// if (
|
|
// request()->isSecure() ||
|
|
// request()->server('HTTP_X_FORWARDED_PROTO') === 'https'
|
|
// ) {
|
|
URL::forceScheme('https');
|
|
// }
|
|
}
|
|
}
|