$request->model("post_id") to get a model directly from a request #48064
Unanswered
khalyomede
asked this question in
Ideas
Replies: 1 comment
-
That models should not be in a controller... Either a service or a repository would be better... Also, if you validated your tag id, there's no need for retrieving the entire tag just so you have the id again... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I often have to write this code in many controllers
As a shorthand I whish we could get a model directly from a request like this
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions