Encode model IDs to JSON:API resource IDs.

Maintainers

Package info

github.com/laravel-json-api/hashids

pkg:composer/laravel-json-api/hashids

Statistics

Installs: 95 143

Dependents: 6

Suggesters: 0

Stars: 4

Open Issues: 0

v3.2.0 2025-03-03 20:19 UTC

This package is auto-updated.

Last update: 2026-03-01 00:34:50 UTC


README

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

Installation

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.

License

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