Abstract
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 concise.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 Jesse Griffin
About this chapter
Cite this chapter
Griffin, J. (2021). Factories and Aggregates. In: Domain-Driven Laravel. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6023-4_15
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6023-4_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6022-7
Online ISBN: 978-1-4842-6023-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books