todo/app/Providers/AppServiceProvider.php

32 lines
526 B
PHP
Raw Normal View History

2020-06-23 04:40:37 +00:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
2022-04-15 04:29:50 +00:00
use Illuminate\Support\Facades\URL;
2020-06-23 04:40:37 +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-04-15 04:10:37 +00:00
if (config('app.env') == 'production') {
URL::forceScheme('https');
}
2020-06-23 04:40:37 +00:00
}
}