Is it possible to transfer middleware in laravel dynamic option from the address bar?

Hello, we can pass in the controller parameter {param} in this way, but is it possible to middleware to convey not staticky row middle:static and dynamically from the request url or how is it done? The goal is to have requests to the server from the client type such queries are many and I would like to tie middleware to each request checked the option "psap" or not, if not, then reject, if the "psap", you can continue
Thanks in advance
June 8th 19 at 16:43
1 answer
June 8th 19 at 16:45
The documentation that you seem to have not read how other mallware was not looking. Middlware and so has access to the request object, why she has to give something?

Find more questions by tags Laravel