Source: juststeveking-uk-astro.pages.dev

Laravel DDD - Querying Records in our Domain
In the last instalment we spoke about using a simplified version of the CQRS pattern to create commands. This time we are going to talk about the other side to this and talk about queries. A Query is a read action, a way to read data from external systems such as the database.

We have already covered how to add these commands and queries into our container so we can bind and call them nicely.

To do this we don’t need as much boilerplate code as we did for the command - so this is a lot simpler.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners