When Does Dependency Injection Run in Laravel? Before or After Routing?
Does the service container resolve dependencies before the router runs, or only after Laravel knows which controller method to call?
Does the service container resolve dependencies before the router runs, or only after Laravel knows which controller method to call?
If you’ve worked with modern PHP frameworks like Leaf or Laravel, you might have come across messages like:
When working on a PHP application—especially an MVC project—you’ll often hear terms like lint, PHPStan, static analysis, and code quality tools. They’re sometimes used interchangeably, but they are not the…
A collection is a special class. It usually has helper methods like: count(), first(), filter(), map() etc. It is designed to be iterable.
Today, I learned how to work with database schema, migration, and seeding in Leaf PHP (Leaf MVC). It helped me understand how Leaf manages database tables and dummy data in…
This blog post is a personal recap of everything I learned while building a custom PHP MVC framework using Composer packages.
If you’re building a standalone PHP MVC framework (not Laravel), one of the easiest ways to improve code quality is adding PHPStan. It helps you catch bugs before they show up in the browser or…
Here is the overall idea how we work with illuminate packages to create custom MVC.
When building a custom PHP MVC (Model-View-Controller) framework, there are several important aspects you need to consider: routing, templating, dependency management, database interaction, input validation, and more.
When using Composer’s PSR-4 autoloading, it’s common to place multiple classes inside the same src/ directory under a single namespace.