Group Middleware – Implement in stand alone php scripts
Group middleware is a way to bundle multiple middleware under one group name, so you don’t have to manually list every single middleware for every route.
Group middleware is a way to bundle multiple middleware under one group name, so you don’t have to manually list every single middleware for every route.
Middlewares are filters for HTTP requests. It filters the request using it’s parameters and redirect to different routes. If all filters passes then call the final controller.
When you’re learning PHP, one confusing thing that often pops up is the term “Closure”. Any anonymous fn() is always an object of default php Closure class.
Here’s a complete guide to create a minimal MVC structure using Illuminate components (routing, database, support, etc.) and display user data from a users table.
Creating your own MVC (Model-View-Controller) structure in plain PHP without any frameworks or Composer packages can be a great way to learn how things work behind the scenes. But it…
Bootstrap provides pre-designed components/classes while Tailwind CSS provides lots of low-level utility classes gives you more flexibility.
As PHP developers, we often find ourselves testing small snippets of code, inspecting variables, or debugging issues directly from the terminal. In a Laravel project, we can use Tinker to…
If you’re a PHP developer, you’ve probably heard about Laravel. But did you know that you can use some of the coolest parts of Laravel in your plain PHP projects?
If you’ve worked with Laravel, you’re probably familiar with its templating engine, Blade, which is used for rendering views. However, you don’t need to use Laravel in its entirety to…
If you’ve used Laravel before, you’re probably familiar with the pagination feature. Pagination in Laravel helps you divide a large amount of data into smaller, manageable chunks (pages) to display…