Open michaelthedev opened 6 months ago
Hi. It doesn't have a wrapper like that for the middlewares at the moment unfortunately. If you need to pass variables you will have to add a function and pass them on the request object or create alternatively create middlewares and make them extend a base one.
request()->user = User::find(1);
Happy new year!
Hi I've looked through the documentation and other issues raised here and I can't find any working way to pass parameters to middleware
I'm looking to achieve something like this
or this
I'm available to assist on this if needed. Thanks and Happy New Year