Upgrade to PHP 7.4 with Homebrew on Mac

Brent has done a writeup on how to upgrade your Homebrew-installed PHP version to PHP 7.4. Since the php formula now contains that 7.4 version (instead of 7.3 before), all you need to do is make sure…
Brent has done a writeup on how to upgrade your Homebrew-installed PHP version to PHP 7.4. Since the php formula now contains that 7.4 version (instead of 7.3 before), all you need to do is make sure…
PHP 7.4 will probably be released this week. My colleague Brent wrote a good post on all the shiney new things this release brings. PHP 7.4, the latest version before PHP 8, brings lots of new featur…
Back in chapter 1, I stated that one of the characteristics of domain oriented Laravel projects is the following: […] most important is that you start thinking in groups of related business concepts, rather than in groups of code with the same technical properties. In other words: group your code…
In the previous chapters we looked at the three core building blocks of our domains: DTOs, actions and models. Today we take a breather from the low level technical stuff, and focus on the philosophical side: how do you start using domains, how to identify them, and how to manage them in the long…
The state pattern is one of the best ways to add state-specific behaviour to models, while still keeping them clean. This chapter will talk about the state pattern, and specifically how to apply it to models. You can think of this chapter as an extension to chapter 4, where I wrote about how we aim…
Or in other words, dealing with complex database relations and Laravel models. Recently I had to deal with a complex performance issue in one of our larger Laravel projects. Let me quickly set the scene. We want an admin user to see an overview of all people in the system in a table, and we want a…