I noticed that Laravel 5 doesn't have a secure (https) middleware since the removal of filters. So i have re-implemented it and shared the code in the hope that you find it useful.
- Add Secure.phpto yourapp\Http\Middlewaredirectory.
- Add the secure middleware to your route.
- If you are using route annotations, don't forget to re-scan your routes using the php artisan route:scancommand.
- The redirect is disabled in any non-production environment (as you likely won't have acquired a certificate at this stage).