Creational

Design Patterns – Abstract Factory

This Creational Pattern provides an interface to create families of related or dependent objects without specifying their concrete classes. This pattern could be used with other creational patterns, such as Factory Method, or could be implemented also using Prototype Pattern and a concrete factory could also be a singleton. Wow, that’s so much information in Design Patterns – Abstract Factory

Design Patterns – Singleton

Let’s talk a bit about our first Creational Design Pattern, here is Singleton. This pattern is common used when you want only one instance of an object. Some frameworks such as Laravel have in your Service Container the possibility to register classes/objects as a singleton. It means that will have only one instance for these Design Patterns – Singleton