LAR_Maintenance/app/Providers/AppServiceProvider.php

27 lines
443 B
PHP
Raw Normal View History

2024-07-30 08:44:45 +00:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
2024-07-30 16:13:21 +00:00
if (config('app.env') != 'local'){
\URL::forceScheme('https');
}
2024-07-30 08:44:45 +00:00
}
}