Skip to content

Commit

Permalink
force https
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipu committed Aug 13, 2023
1 parent 9f8b9eb commit 297c4fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Filament\Support\Assets\Css;
use Filament\Support\Facades\FilamentAsset;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
Expand All @@ -23,6 +24,9 @@ public function register(): void
*/
public function boot(): void
{
if($this->app->environment('prod')) {
URL::forceScheme('https');
}
Model::unguard();
WalletConfigure::ignoreMigrations();
}
Expand Down

0 comments on commit 297c4fc

Please sign in to comment.