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.php
to yourapp\Http\Middleware
directory. - 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:scan
command.