Skip to content

Commit

Permalink
SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
cmosh committed Jul 25, 2017
1 parent 927fe79 commit 347ee84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class AppServiceProvider extends ServiceProvider {
*/
public function boot()
{
if (config('app.ssl'))
URL::forceSchema('https');
}

Expand Down
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'laport' => env('LASSET_PORT',5000),
'mak' => env('MAK',false),
'env' => env('APP_ENV', 'production'),
'ssl' => env('SSL',false),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
Expand Down

0 comments on commit 347ee84

Please sign in to comment.