-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Synopsis:
Instead of the normal string, separated by the pipe (|), It would be helpful to have an option to generate the array-based syntax instead.
Proposed Syntax:
Probably a config setting, rather than something done in the yaml:
<?php
return [
// ...
'use_rules_array' => true, // default: false
This would also open up the ability to use the Rule class helpers instead of relying on just strings.
Expected Behavior:
Generates rules in form requests like so:
return [
'column' => ['required', 'exists:users,email'],
];
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request