How to add route model binding in middleware #51640
Unanswered
localusercamp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add a route model binding to every route in my application from middleware.
My routes looks like this:
I trying to set route parameter in middleware like so:
And then trying to resolve company as model instance inside controller:
dd()
from controller prints this:How can i accomplish wanted behaviour?
Beta Was this translation helpful? Give feedback.
All reactions