Answer Posted / 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 View All Answers
What is laravel and why it is used?
How to Configuration Laravel - Encryption ?
What is the use of the bootstrap directory?
Tell me how to enable the query logging?
What is service container?
Explain homestead in laravel.
What do you mean by route groups used in laravel 5?
What is mass assignable in laravel?
What is report method?
What is the difference between namespace and use in laravel?
What do you mean by horizon in laravel 5?
What is homebrew?
What is route model binding?
What is laracasts?
What does csrf token in laravel 5?