How can I create a route model binding with v6 ? #4524
Answered
by
RomainLanz
franckDev21
asked this question in
Help
-
I'd like to be able to do something like this please:
|
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Apr 16, 2024
Replies: 1 comment 1 reply
-
Hi? The route model binding package has not been migrated to work on AdonisJS 6 yet. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
franckDev21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi?
The route model binding package has not been migrated to work on AdonisJS 6 yet.
But nothing stops you from writing exactly the route you shared and handling the data fetching yourself. It is like 3 lines of code.