short-url/app/Providers/AppServiceProvider.php
2022-09-08 23:37:03 +07:00

32 lines
526 B
PHP
Executable File

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
if (config('app.env') == 'production') {
URL::forceScheme('https');
}
}
}