Last active
April 14, 2019 21:30
-
-
Save Jhhames/235c6adea5ad0c274dd9a184fe6a7f76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\URL; | |
public function __construct(){ | |
// Force SSL in production | |
if (config('app.env') == 'production') { | |
URL::forceScheme('https'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment