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
How to share sites with external world on valet?
How do I see all defined routes?
Why composer is used in laravel?
What getfacadeaccessor method does?
How do I setup localization for an application?
What are class traits?
Tell me how to get current environment in laravel 5?
Explain the controllers in laravel?
What is laravel spark?
Tell me how to enable the query logging?
What is the service container in laravel?
What is laravel service container?
Explain laravel’s service container?
What is use keyword in laravel?
List out common artisan commands used in laravel.