In this chapter, we will be going over factories, factory methods, and aggregates and what purpose they serve in an application. There are some prerequisites you should understand before diving into aggregates that will give you a better core understanding of what they do and why they are one of the hardest concepts to get right in the technical portion of domain-driven design. We will explore the value that factories and factory methods have in regard to an aggregate design and explore some cool things we can do in Laravel and Eloquent to make the code easier to understand and more ...
Get Domain-Driven Laravel: Learn to Implement Domain-Driven Design Using Laravel now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.