tripteki / laravelphp-unique
Trip Teknologi's Laravel.php Unique Identifier
1.0.0
2023-11-02 03:11 UTC
Requires
- php: ^8.0.2
Suggests
- laravel/framework: Required when using laravel framework (^9.0).
- laravel/lumen-framework: Required when using lumen framework (^9.0).
README
This package provides unique identifier for Lumen and Laravel.
Getting Started
Installation :
$ composer require tripteki/laravelphp-unique
How to use it :
-
Put
Tripteki\Uid\Traits\UniqueIdTrait
into target model. -
Put
TargetModel::observe(\Tripteki\Uid\Observers\UniqueIdObserver::class)
intoboot
provider. -
Put
$table->uuid("identifier")
and$table->primary("identifier")
into migration.
Author
- Trip Teknologi (@tripteki)
- Hasby Maulana (@hsbmaulana)