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 service container?
Tell us how to use update statement in laravel?
Describe laravel service provider?
How can we create a record in laravel using eloquent?
How to get last inserted id using laravel query?
What is laravel?
Explain php artisan?
Explain loggin in laravel.
What are the Versions Laravel - Understanding Release Process ?
What is map function in laravel?
List server requirements for installing laravel 5.5?
Explain how to do 301 redirects in laravel?
Explain how to redirect user with flashed session data in laravel?
Explain the concept of encryption and decryption in laravel.
Tell me what are pros and cons of using laravel framework?