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 |
How can you generate urls?
How do I make a particular task run everyday by 10pm?
What is namespace in laravel?
What is lumen?
How auth is used?
What is redirect routes?
What is binding?
How to generate a controller with resources in laravel?
What is gate in laravel?
Is laravel nova free?
What are the software’s included in laravel homestead?
What is the difference between echo print print_r and var_dump?