Skip to content

Update FormRequest to fetch validated value directly #36917

New issue

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

Closed
wants to merge 4 commits into from
Closed

Update FormRequest to fetch validated value directly #36917

wants to merge 4 commits into from

Conversation

Norgul
Copy link
Contributor

@Norgul Norgul commented Apr 8, 2021

Directly fetch validated value by string.

$request->validated('validated_value')

@Norgul Norgul changed the title Update FormRequest.php Update FormRequest to fetch validated value directly Apr 8, 2021
@rodrigopedra
Copy link
Contributor

This is already merged for Laravel 9.x (unreleased)

#36807

As it changes a public method signature it is a Breaking Change, so that is why it was merged into master (9.x) instead of 8.x

@Norgul
Copy link
Contributor Author

Norgul commented Apr 8, 2021

Oh wow, cool!

@Norgul Norgul closed this Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants