sibanu_web/app/Providers/AppServiceProvider.php

32 lines
502 B
PHP
Raw Permalink Normal View History

2022-08-20 13:21:23 +07:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
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');
}
}
}