Route model binding is a neat little trick to bind the Lucid models with the Route params. For example, You can say, on the route
/posts/:id, the value of the
id param should be used to query a Post and inject its instance to the controller automatically.
Route model binding is very popular in the Laravel community, and I have received numerous requests to add it to AdonisJS. Finally, we have it 🎉