All notable changes to laravel-fractal
will be documented in this file
- fixes bug where a passed serializer wouldn't be used
- add compatiblity with fractal 0.16 through fractalistic 2.0
- add compatiblity with Lumen
- fix resolving
Fractal::class
out of the container
- add support for passing paginators to the
data
argument offractal()
- bind
laravel-fractal
as a singleton
- add support for Laravel 5.4
- improve descriptions of generator command
- allow closures to be used as serializers
- fixed missing namespace import in Fractal
- the facade will now use the configured serializer
- fix wrong implementation of the
respond
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
.
- add
respond
method
- fix dependencies in
composer.json
- make use of
spatie/fractalistic
- add
make:transformer
artisan command.
- made compatible with fractal
0.14
- improvements to the
fractal
-helper function. - added excludes
- Added L5.3 compatibility
- Added support for cursors
- The
Fractal
-class now implements theJsonSerializable
-interface
- Fixed a bug when passing a null value to parseIncludes
- Fixed bug when adding multiple includes in one go
- Fix for adding multiple includes in one go.
** this version contains a bug when adding multiple includes in one go, please upgrade to v1.7.3 **
- Fix for setting the default_serializer as an instantiation in Lumen
- Allow default_serializer to be set as an instantiation
- dependency version number of fractal in composer.json
- compatiblity with version v0.13 of Fractal
Please not that the output of JsonApiSerializer
has been changed in v0.13 of Fractal.
- Support for including meta data
- Pagination methods
- Custom resource names
- Support for Lumen
- Methods to use includes
- Create data method
- Made the
getResource
-function public
- Everything, initial release