Download the PHP package malico/laravel-nanoid without Composer
On this page you can find all versions of the php package malico/laravel-nanoid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-nanoid
Laravel Nanoid
Introduction
A simple drop-in solution for providing nanoid support for the IDs of your Eloquent models. (Stripe-like IDs)
Installing
composer require malico/laravel-nanoid
Usage
Use nanoid within your model, use the trait HasNanoids
within your model like.
Your migration file should like.
To create a new migration, use the artisan command make:nanoid-migration
. All arguments work the same as the make:migration
command.
Options
- Prefix: To Specify a Prefix for the IDs, you can specify a prefix by add `nanoPrefix' property to your model class.
- Same applies for the length of the ID.
Check the upgrade guide if you're upgrading from 0.x
Author
Ndifon Desmond Yong
All versions of laravel-nanoid with dependencies
PHP Build Version
Package Version
Requires
hidehalo/nanoid-php Version
^1.1
illuminate/auth Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/auth Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
The package malico/laravel-nanoid contains the following files
Loading the files please wait ....