Skip to content

Commit

Permalink
hotfix: force https for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
eng-gabrielscardoso committed Jun 30, 2024
1 parent 4ca0b7a commit dc48099
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 @@ -2,6 +2,7 @@

namespace App\Providers;

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

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

0 comments on commit dc48099

Please sign in to comment.