Skip to content

4.1.0

Compare
Choose a tag to compare
@binaryk binaryk released this 12 Dec 15:32
· 101 commits to 4.x since this release
053fbfc

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 is Binaryk\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,
    ],