spatie/laravel-fractal
Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays.
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.3.2...6.3.3
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.3.1...6.3.2
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.3.0...6.3.1
fieldsets by @Mohammad-Alavi in https://github.com/spatie/laravel-fractal/pull/261Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.2.2...6.3.0
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.2.1...6.2.2
return annotation by @Mohammad-Alavi in https://github.com/spatie/laravel-fractal/pull/258Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.2.0...6.2.1
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.1.0...6.2.0
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.0.3...6.1.0
Full Changelog: https://github.com/spatie/laravel-fractal/compare/6.0.2...6.0.3
Spatie\Fractal\Facades\FractaltransformWith collection macrorespond methodlaravel-fractal to fractaldefault_paginator to config filefractal_class to config fileFractal::class out of the containerdata argument of fractal()laravel-fractal as a singletonrespond method.If you encounter errors when upgrading from 3.1.0 to this version, replace all usages of Spatie\Fractal\Response by Illuminate\Http\JsonResponse. All calls to the headers method on that class should be replaced by withHeaders.
respond methodcomposer.jsonspatie/fractalisticmake:transformer artisan command.0.14fractal-helper function.Fractal-class now implements the JsonSerializable-interface** this version contains a bug when adding multiple includes in one go, please upgrade to v1.7.3 **
Please not that the output of JsonApiSerializer has been changed in v0.13 of Fractal.
getResource-function publicFull Changelog: https://github.com/spatie/laravel-fractal/compare/5.8.1...6.0.0
How can I help you explore Laravel packages today?