Understanding auth() in Leaf PHP MVC
auth() is a helper function provided by Leaf’s authentication package.
auth() is a helper function provided by Leaf’s authentication package.
When you start learning MVC frameworks like LeafPHP (and later Laravel), one concept becomes very important:
Soft deletes allow you to “delete” records without permanently removing them from the database. Instead of deleting a row, a deleted_at timestamp is set. This makes it possible to restore…
This is a list of every command available in Aloe. To view this list from your terminal, run php leaf list.
When choosing a PHP framework, developers often compare Laravel and LeafPHP. Both are capable frameworks — but when it comes to handling forms, validation, and preserving user input after errors,…
LeafPHP is fast, lightweight, and genuinely pleasant to work with — yet if you search online, you’ll notice it often gets down-voted or dismissed, especially by developers coming from Laravel.
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…
I have already touched routing, controllers, models, migrations, and basic CRUD with leafphp framework — that’s the core of MVC. Now the goal is to go wider and deeper, not…
When building CRUD functionality in an MVC application, it’s easy to focus only on what works. But in web development, how you do it matters just as much as that…