Replies: 2 comments
-
I'd love to have that! 😍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How would be handled the validation exceptions in this case? |
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
-
I'm loving the new
#[CurrentUser]
attribute in the HTTP layer. I love having strongly typed data coming in to my controller and it's making me wonder if it'd be possible to do the same with validated form data. Something along the lines of,Today I do this same sort of thing with https://github.com/spatie/laravel-data and absolutely love it. But, if I could avoid all the extra value objects that are really only being used as strongly typed
FormRequest
s then I think I'd be a lot happier.I'm looking for hooks in to the container resolution where I could do something like this and I'm not seeing anything. Anyone know if it's possible to resolve a group of parameters before Laravel does its thing?
Edited to add that we could use some of that
laravel-data
type inferring to turn astring
type hint in to a rule. That way you could drop a lot of that noise,Beta Was this translation helpful? Give feedback.
All reactions