Since November, I’ve been working with a small web-dev firm that uses Laravel for all its clients’ API backends. Over time, we’ve been taking new approaches to solving problems, and simplifying our code to make life easier in the long run. Here are some quick and useful tips we’ve been following as part of this process.
In Laravel 5.5, JSON responses are a little different. In particular, you’ll find that validation exceptions have changed, and it’s easy to miss what the upgrade guide says about it.
After shrugging at Jumplinks’ massive module class, I’ve begun writing in a more OOP way, and there are a couple of things that have come in handy in terms of SoC of late. One of them is hook classes, which helps split hook functions out into their own classes in an intuitive way.