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 […]

Indexing in MySQL

In SQL, indexing is a technique used to optimize the retrieval of rows from a table. Indexes provide a quick and efficient way to locate […]

Traits in PHP

In PHP, a trait is a language feature that allows you to reuse code in classes without using inheritance. Traits provide a way to include […]

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 […]