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
Is laravel safe from sql injection?
How to use laravel framework in php?
How to set database connection in laravel?
Do you know what is php artisan. List out some artisan commands?
What are service providers in laravel?
What is reverse routing in laravel?
What is response macros?
How to check request is ajax or not?
How can we use middleware in laravel?
How to pass custom table name in model?
what is Blade ?
How do laravel facades work?
How to get Retrieving a Cookie in Laravel ?
Is laravel an mvc framework?
What do you understand by unit testing?