Skip to content

Conversation

YutaInouePH
Copy link
Contributor

  • Add parenthesis for psr12 format
  • Pass the proper parameters for $request->validate() line.

- Add parenthesis for psr12 format
- Pass the proper parameters for `$request->validate()` line.
Copy link
Owner

@matt-daneshvar matt-daneshvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Yuta, this looks good to me, with just a minor suggestion. Thanks for contributing.

readme.md Outdated
{
$answers = $request->validate($request, $survey->rules);
$answers = $request->validate($survey->rules, $request->all());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can drop the second argument.

Suggested change
$answers = $request->validate($survey->rules, $request->all());
$answers = $request->validate($survey->rules);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out. I confirmed that it's working without the 2nd param.

- Removed 2nd param of `$request->validate()` method.
@matt-daneshvar matt-daneshvar merged commit 9e4123e into matt-daneshvar:master Mar 27, 2025
11 checks passed
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