-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
it freezes when the rule attribute has the value ends with asterix(*) or full stop (.) #661
Comments
your one is different |
Remove the extra dot. |
@shalvah why? cause we want to validate the key names as per my issue stated see above {
"123": {"id": 1, "price": 23232},
"621": {"id": 2, "price": 23232},
} |
You have an extra dot. Remove it. Ending with a dot is not valid in Laravel validation rules. return [
- 'products.' => ['numeric',],
+ 'products' => ['numeric',],
'products.*.' => ['array:slug,price'],
]; |
@shalvah No you are wrong, It is a valid rule, suppose you want validate the array keys for that you can use the dot syntax and validate the index as I stated above |
Can you show me 1 example of that in the Laravel docs? |
??? |
This is the PR |
Scribe version
4.19.1
PHP version
8.1
Framework
Laravel
Framework version
v9.52.7
Scribe config
What happened?
Set the below rule in your formrequests and run the generate command it freezes
the request is
Docs
The text was updated successfully, but these errors were encountered: