force https

This commit is contained in:
Chimezie Enyinnaya
2024-09-09 08:30:13 +01:00
parent f9bb430ea9
commit 886f5bcae9

View File

@@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -19,6 +20,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
//
if ($this->app->environment('production')) {
URL::forceScheme('https');
};
}
}