Commit eceda1f3 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix mixed content: force HTTPS URL generation in production

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent ebc3be78
......@@ -2,23 +2,20 @@
namespace App\Providers;
use Illuminate\Support\Facades\URL;
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 (app()->environment('production')) {
URL::forceScheme('https');
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment