object



Interfaces binding with implementations in Laravel

  • avatar
  • 12.2K Views
  • 15 Likes
  • 9 mins read
Preview post image

An interface is a programming structure that allows the computer to enforce certain properties on an object. In object oriented programming, an interface generally defines the set of methods that an instance of a class that has that interface could respond to. It is actually a concept of abstraction and encapsulation.

Domain Driven Design: Components

  • avatar
  • 3.8K Views
  • 7 Likes
  • 9 mins read
Preview post image

Previously, we explored the fundamental concepts and terminology utilized in Domain Driven Design (DDD), as well as the layers that make up its architecture. In this section, we will examine the artifacts employed to integrate these concepts and construct our application, using PHP as an example.

Exploring the inner workings of Laravel Facades

  • avatar
  • 3.0K Views
  • 3 Likes
  • 5 mins read
Preview post image

In the realm of Laravel, there is a powerful feature called Facades that plays a significant role in simplifying code and enhancing developer productivity. Facades in Laravel provide a simple and elegant way to access underlying classes without the need for complex dependency injection or instantiating objects. By abstracting away the complexities, Laravel Facades offer a clean and intuitive syntax that allows developers to write expressive and concise code. In this article, we will investigate the inner workings of Laravel Facades to demystify their magic and showcase their remarkable capabilities.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

Native enumerations in PHP

  • avatar
  • 1.7K Views
  • 3 Likes
  • 6 mins read
Preview post image

Enumerations, or Enums allow a developer to define a custom type that is limited to one of a discrete number of possible values. That can be especially helpful when defining a domain model, as it enables making invalid states unrepresentable. In other words, enums are a restricting layer on top of classes and class constants, intended to provide a way to define a closed set of possible values for a type.