Remove public from url laravel 8/9/10

PLEASE NOTE when serving a Laravel project with Docker: you won’t need to do any of this. Only use this option when your root (or more commonly: public_html) directory […]

What are the magic methods in PHP?

In PHP, magic methods are special methods that begin with the double underscore “__” and serve a specific purpose. These methods are automatically called by the PHP interpreter under certain circumstances.

How to create a seeder in Laravel?

Seeders are used to populate your application’s database with dummy or test data. They are especially useful during the development and testing phases. Laravel provides […]

Encapsulation in PHP

Encapsulation is one of the pillars of object-oriented programming (OOP) and refers to the bundling of data and the methods that operate on that data […]

What are the pillars of OOP in PHP?

The pillars of object-oriented programming (OOP) in PHP, as in most other object-oriented languages, are commonly referred to as the four pillars of OOP. These […]

PHP Abstract Classes and Methods

Abstract classes and methods are used to define common behavior and structure that must be implemented by concrete (non-abstract) classes. Abstract classes cannot be instantiated […]

PHP Constants

Constants are used to define values that remain unchanged throughout the execution of a program. They are useful for defining configuration values, predefined values, or […]