Skip to content

tripteki/laravelphp-unique

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unique Identifier

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) into boot provider.

  • Put $table->uuid("identifier") and $table->primary("identifier") into migration.

Author