Over the years, I've experimented with a few ways of testing middleware in my Laravel apps. Some approaches felt too sterile and isolated. Others ended up being more complex and a bit brittle to maintain.
In today's video, I'll show you my current approach, which strikes a nice balance between simplicity and reliability.
And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.
Here to help,
Joel
P.S. This is just one testing tip to make your apps more robust. I share many more techniques in the Laravel testing workshop.