We'll try to document any major breaking changes here and how to upgrade them.
This is a major release, and a major upgrade as well. Main changes are
- No more Guzzle dependency. You need to have an http client installed in your project, and the library will autodiscover it. More on how in the README.
- New namespace. Everything starting with
Webleit\RevisoApi
is now justWeble\RevisoApi
- PHP 8.0+ only
- New constructor of the main library, check the README for details.
delete()
now isvoid
, and throws an exception when delete fails.- Model data now returns an instance of
Illuminate\Support\Collection
Weble\RevisoApi\Collection
now extendsIlluminate\Support\Collection
instead of wrapping it. ThereforegetData
is not needed anymore.Models
andCollection
now requires theClient
as a parameter