PHPnews.io

Overview for 'stitcher-io'


What's new in PHP 7.4

Written by murze.be / Original link on Nov. 25, 2019

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…


07. Entering the application layer

Written by Stitcher.io / Original link on Nov. 21, 2019

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…


06. Managing domains

Written by Stitcher.io / Original link on Nov. 16, 2019

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…


05. States

Written by Stitcher.io / Original link on Nov. 15, 2019

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…


Relationship issues

Written by Stitcher.io / Original link on Nov. 8, 2019

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…