The Impossible Problem

A few years ago, when I was first starting out as a professional web developer, I ran into an issue with one of my site builds. After struggling for a few hours I sheepishly went to my project manager and delivered the news: "Feature X? Yeah, unfortunately, it looks like it's impossible." Unable to get it out of my mind, I ...

Lumen Force Https Redirect on Heroku

If you've ever been in a situation where you want to force your Laravel application to redirect all URL's to HTTPS at the application level, you've probably come across this Stack Overflow answer which suggests you make a Middleware like the following: namespace App\Http\Middleware; use Closure; class HttpsProtocol { public fu...

Laravel-style Password Resets in Lumen

So, you're building an API with Lumen and you want to add some basic password reset functionality. That should be easy, right? After all, adding password resets in Lumen's older sibling, Laravel, is a cinch. Yeah, I thought it would be easy too, but it wasn't. After frantic googling returned a Laracasts thread with no response, a Lar...