flugg / laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fractal with Laravel's elegancy.
MIT License
861 stars 86 forks source link

Fractal 0.20.0 supprot #184

Open beeyev opened 2 years ago

beeyev commented 2 years ago

Hello, Could you please add support of the new Fractal version - 0.20.0

maid450 commented 1 year ago

Hello, is this project dead?

I get this error since upgrading to Laravel 9 and PHP 8.1: Return type of League\Fractal\Scope::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vendor/league/fractal/src/Scope.php on line 298

This was fixed in fractal package on 0.20 but this package still requires 0.19

flugg commented 1 year ago

Hi, the package isn't dead per se - but I'll admit I haven't had much time to work on it for the past couple of years. I'm trying to find some time to release the next major version which is almost done and removes Fractal as a dependency (in favor of Laravel's API resources). With that said, I'll try to find some time to upgrade this version to add support for Fractal 0.20 as well.

r0bdiabl0 commented 1 year ago

Can you quickly add support for 0.20 in the meantime?