We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be very useful to have Route Model Binding, similar to what Laravel has.
Currently, you have to retrieve the model by hand.
Something like this:
routes/web.py:
routes/web.py
Route.get('users/{user}', 'UserController@show')
app/controllers/UserController.py:
app/controllers/UserController.py
from app.models.User import User def show(self, user: User): return user
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem?
It would be very useful to have Route Model Binding, similar to what Laravel has.
What do we currently have to do now?
Currently, you have to retrieve the model by hand.
Describe the solution you'd like
Something like this:
routes/web.py
:app/controllers/UserController.py
:Describe alternatives you've considered
No response
Would this be a breaking change ?
Anything else ?
No response
The text was updated successfully, but these errors were encountered: