laracasts / Validation

Easy form validation.
https://packagist.org/packages/laracasts/validation
MIT License
150 stars 37 forks source link

Call to undefined method Laracasts\Validation\ValidationServiceProvider::package() #25

Open ErichNie opened 7 years ago

ErichNie commented 7 years ago

I am getting this error. FatalErrorException in ValidationServiceProvider.php line 29: Call to undefined method Laracasts\Validation\ValidationServiceProvider::package()

I am converting a Laravel 4 package to Laravel 5. I have included the class into the providers in place of the old Illuminate\Validation\ValidationServiceProvider::class

Sopamo commented 7 years ago

It seems like this package doesn't work with Laravel 5 (even though it has L5 as a depencency), you should switch to the Laravel native validation.