-
-
Notifications
You must be signed in to change notification settings - Fork 176
Enums #835
Copy link
Copy link
Open
Labels
Description
Subject of the issue
Add ability to use Enums validation rule: https://laravel.com/docs/9.x/validation#rule-enum
Your environment
- version of this package: 4.7.0
- version of Laravel: 9.4.1
Steps to reproduce
public funciton rules(): array
{
return [
'awesome_enum_type' => ['required', 'integer', new Enum(AwesomeEnumType::class)],
];
}Expected behaviour
Validation work like as Rule::in() or something.
Actual behaviour
I see on browser: Whoops, looks like something went wrong.
Reactions are currently unavailable