Thoughts on web development, Laravel, PHP, and solving problems day to day.
Have you ever seen your errors filling up with TokenMismatchException errors for routes that don't support POST, or just don't exist? Here's one way to handle the exception better.
Adam Wathan has been a big proponent of Collection pipelines, so much so that he wrote a book on it, which I've had a chance to read (and think you should, too)
Development often leads to adding debug logging to your application, but it's a pain to remove it all before deploying to production. Here's how to work around that.
Testing for JSON responses in Laravel is easy with seeJson, but testing validation errors requires a little bit more work.
If you've ever found yourself wondering how to implement cascading soft deletes with Laravel and Eloquent, I may have a solution for you.
If you've ever been in the situation where you need to have components be aware of each other's state, Vue's custom event interface may be what you're after.
I discovered the other day how to easily figure out when to use v-show and when to use v-if (hint: it's in the docs)
Working on ConFOMO, and to make life easier, my first step was to come up with a set of rules for PHP CS Fixer and enforcing them on each commit.
The entire process is pretty simple now, but what if I told you it could be even simpler?
Testing controller authorisation in Laravel, I stumbled across an issue due to exception handling. The fix was simple enough, though tricky to track down.