-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Missing Validation Rule
If validation rules are defined in an array and are not inline, they are not displayed in the user interface.
To Reproduce
Steps to reproduce the behavior:
- Create a rule for example
public function rules(): array
{
return [
'reference' => ['required', 'string', 'max:32'],
'virtual_account_number_from' => [
'required',
'string',
'size:16'
],
'virtual_account_number_to' => [
'required',
'string',
'size:16'
],
'amount' => ['required', 'numeric'],
];
}
- The UI shows required , numeric rules for
amountbut not for other two
Expected behavior
The rules shouldn't be affected by multiple lines; all validation rules should be displayed correctly.
Screenshots
Desktop
- OS: Ubuntu 24
- Browser: Chrome
- Version 142.0.7444.162
Versions
- Laravel Version: 12.38.1
- PHP Version: 8.4.14
- Laravel Request Docs Version: 2.43
Metadata
Metadata
Assignees
Labels
No labels