TODOList-Laravel / app /Providers /AppServiceProvider.php
Anuj-Panthri's picture
added somethings for forcing https
b332f6a
raw
history blame contribute delete
463 Bytes
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
if($this->app->environment('production')) {
\URL::forceScheme('https');
}
}
}