-
Notifications
You must be signed in to change notification settings - Fork 47
Description
I just upgraded from 0.5.2 and discovered that the validations no longer work, throwing a BadMethodCallException: Method Illuminate\Validation\Validator::validateCca2 does not exist.
I discovered that the validator extensions were not being loaded at all, and traced that back to the service provider now being deferred.
As a workaround, I just added app('pragmarx.countries');
to my own AppServiceProvider to manually resolve the provider on every request, which then registers the validator extensions, and everything is happy again.
I'm not sure of the best solution to this issue. Perhaps it would be best to convert the validation extensions to Rule objects that will resolve the provider when needed without having to disable deferred loading all together.