4.1.0
Added
- Support for using a custom related cast class (aka transformer). You can do so by modifying the
restify.casts.related
property. The default related cast isBinaryk\LaravelRestify\Repositories\Casts\RelatedCast
.
The cast class should extends the Binaryk\LaravelRestify\Repositories\Casts\RepositoryCast
abstract class.
Copy the default config to your restify.php
configuration:
'casts' => [
/*
|--------------------------------------------------------------------------
| Casting the related entities format.
|--------------------------------------------------------------------------
|
*/
'related' => \Binaryk\LaravelRestify\Repositories\Casts\RelatedCast::class,
],