Encode model IDs to JSON:API resource IDs.

v1.1.0 2022-02-09 20:07 UTC

This package is auto-updated.

Last update: 2022-08-09 21:14:52 UTC


Encode model keys to JSON:API resource ids using vinkla/hashids. This is a plugin for Laravel JSON:API.


Install using Composer

composer require laravel-json-api/hashids

This will also install vinkla/hashids. After installing, you will need to publish the configuration for that package:

php artisan vendor:publish --provider="Vinkla\Hashids\HashidsServiceProvider"

Refer to the README in that package for more configuration information.


Laravel JSON:API is open-sourced software licensed under the Apache 2.0 License.