What is the purpose of Laravel Middleware?
a) To handle database migrations
b) To filter HTTP requests entering the application
c) To manage Blade views
d) To serve static assets
Answer:
b) To filter HTTP requests entering the application
Explanation:
Laravel Middleware is used to filter HTTP requests before they reach the controller, allowing developers to apply logic like authentication, logging, or request modification.