What is use of middleware in laravel?



What is use of middleware in laravel?..

Answer / sachin-laradev

Middleware works as a bridge between our sent request and given response we can place our any logic in middleware and define it in our route to use it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What are the differences between laravel and codeigniter?

1 Answers  


How can you enable query log in laravel?

1 Answers  


How to get data between two dates with query in laravel?

1 Answers  


How do I setup localization for an application?

1 Answers  


How do I seed my database for column that is a foreign key referencing to other table?

1 Answers  


What is csrf protection token?

1 Answers  


How do I make my application serve its content in different languages?

1 Answers  


What is the difference between print_r and var_dump?

1 Answers  


What are the difference between insert() and insertgetid() in laravel?

1 Answers  


List the requirements to install valet?

1 Answers  


What is a Laravel - Localization ?

1 Answers  


Why composer is used in laravel?

1 Answers  


Categories