In Laravel 3 URL::secure/Redirect::secure got overridden by the ssl config. Nice for testing locally when you don't have ssl setup.
In Laravel 4 they took it out. Why? Fuck knows...
Anyway heres how to get it working again.
-
Step 1
Add ssl config to config/app.php
'ssl' => false, // Or true depending on your environment
-
Step 2
Add the classes below to a folder that autoloads classes (I added a classes folder to the app folder and added this to composer)
-
Step 3
Add the following to your providers array in config/app.php (Add it to the bottom of the array)
'RoutingServiceProvider',
-
Step 4
Run
composer dump-autoload
-
Step 5
Mexican wave!