fix: force HTTPS scheme in production to resolve mixed content issues with livewire assets

This commit is contained in:
jeremy bayse
2026-06-24 07:12:16 +02:00
parent d6790e9b44
commit 0b8c57e912
+5 -1
View File
@@ -4,6 +4,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{
/**
@@ -19,6 +21,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
//
if ($this->app->environment('production') || env('FORCE_HTTPS', false)) {
URL::forceScheme('https');
}
}
}