MIF_E31230671/KecamatanKanigoro/app/Providers/AppServiceProvider.php

27 lines
493 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
if (str_contains(request()->getHost(), 'ngrok')) {
URL::forceScheme('https');
}
}
}