What is Middleware Parameters ?
Answers were Sorted based on User's Feedback
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 |
Answer / Shikha Rai
Middleware parameters are variables passed to a middleware class constructor. These parameters can be used within the middleware to customize its behavior.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how to create custom middleware in laravel?
What is namespace in php laravel?
What do you know about facades in laravel? Explain.
How can I learn laravel fast?
How to enable multiple php versions in homestead?
How does the ioc (inversion of control) container work?
Do you know validations in laravel?
Is laravel good for api?
Is laravel an mvc?
What is reverse path multicasting?
Explain the request life cycle of laravel?
What is algolia search?