static



Install PHPStan and configure for Laravel application

  • avatar
  • 8.8K Views
  • 11 Likes
  • 3 mins read
Preview post image

Unlike compiled languages, in PHP if you make a mistake, the program will crash when the line of code with the mistake is executed. When testing a PHP application, whether manually or automatically, developers spend a lot of their time discovering mistakes that wouldn’t even compile in other languages, leaving less time for testing actual business logic.

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.

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.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

Hey visitor! Unlock access to featured articles, remove ads and much more - it's free.