short-url/app/Providers/AppServiceProvider.php

32 lines
526 B
PHP
Raw Permalink Normal View History

2020-07-01 08:57:45 +00:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
2022-09-08 16:37:03 +00:00
use Illuminate\Support\Facades\URL;
2020-07-01 08:57:45 +00:00
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
2022-09-08 16:37:03 +00:00
if (config('app.env') == 'production') {
URL::forceScheme('https');
}
2020-07-01 08:57:45 +00:00
}
}