Skip to content

Commit

Permalink
fix: mixed content error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesisfroellerix committed Jan 10, 2024
1 parent 27b5164 commit 4f1d36c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -19,6 +20,8 @@ public function register(): void
*/
public function boot(): void
{
//
if (config('app.env') === 'production') {
URL::forceScheme('https');
}
}
}

0 comments on commit 4f1d36c

Please sign in to comment.