laravel-json-api / hashids
Encode model IDs to JSON:API resource IDs.
Installs: 44 838
Dependents: 5
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^8.2
- laravel-json-api/core: ^4.3.2|^5.0.1
- laravel-json-api/eloquent: ^4.4
- vinkla/hashids: ^12.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-01-18 16:16:47 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.