Skip to content

Commit

Permalink
Enforce HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
smartclash committed Dec 10, 2020
1 parent 11ec232 commit ac61b64
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 @@ -25,6 +26,8 @@ public function register()
*/
public function boot()
{
//
if (app()->environment('production')) {
URL::forceScheme('https');
}
}
}

0 comments on commit ac61b64

Please sign in to comment.