dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

fix ValidationException->errors() method not exists for laravel 5.2,5.3,5.4 #1549

Closed keyganker closed 5 years ago

keyganker commented 6 years ago

fix for #1510 @jasonlewis

specialtactics commented 5 years ago

Based on some earlier commits by @thilanga , this package doesn't support laravel below 5.5 in general.

It's possible possible that this will fix this particular issue, but if we continue to support laravel version this old, it will cause a lot of messy code I think.

It would be much better if users updated their versions of laravel, they are generally very easy to update, and there are even automated services that can do this

One example: https://laravelshift.com/

keyganker commented 5 years ago

Thanks for your relay!