What is Middleware Parameters ?



What is Middleware Parameters ?..

Answer / nafees ahmad

We can also pass parameters with the Middleware.
The middleware that we create contains the following function and we can pass our custom argument after the $next argument.
Example : public function handle($request, Closure $next)
{
return $next($request);
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How can you generate urls?

0 Answers  


How do I make a particular task run everyday by 10pm?

0 Answers  


What is namespace in laravel?

0 Answers  


What is lumen?

0 Answers  


How auth is used?

0 Answers  


What is redirect routes?

0 Answers  


What is binding?

0 Answers  


How to generate a controller with resources in laravel?

0 Answers  


What is gate in laravel?

0 Answers  


Is laravel nova free?

0 Answers  


What are the software’s included in laravel homestead?

0 Answers  


What is the difference between echo print print_r and var_dump?

0 Answers  


Categories