Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

enforce SSL on production mode #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@

class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// Enfocre SSL in Production
if(config('app.env') === 'production') {
\URL::forceSchema('https');
}
}

/**
* Register any application services.
*
Expand Down