todo/app/Providers/AppServiceProvider.php

32 lines
513 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:21:43 +00:00
use App\Providers\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
}
}