Intervention / validation

Missing Laravel Validation Rules
https://validation.intervention.io
MIT License
586 stars 66 forks source link

Validation rule does not exist #30

Closed hofmannsven closed 4 years ago

hofmannsven commented 4 years ago

Since the 2.0.0-beta1 I'm having issues with my custom validation rules (see using extensions).

I added the custom validation rule right inside my app service provider:

Validator::extend('foo', 'FooValidator@validate');

And I keep getting the error:

Validation rule (Intervention\Validation\Rules\Foo) does not exist.

Can you help?

olivervogel commented 4 years ago

Well, It’s still beta. I suggest to stick to 1.x for now.

hofmannsven commented 4 years ago

Thanks for your reply. It already works with the 2.0.0-beta3.