Created
July 9, 2014 03:56
-
-
Save mmccall10/f8af92b92412ae66f7a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
App::before(function($request) | |
{ | |
if(!Request::secure()) | |
{ | |
$url = Request::url(); | |
$url = str_replace('http', 'https', $url); | |
return Redirect::to($url); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment