laravel-uxid maintained by andregumieri
Author
Last update
2026/09/11 23:00
(dev-main)
Downloads
933
Laravel UXID
Migrations
UXID
Instead of using $table->id() use $table->uxid() (short for $table->string('id')->primary)
Foreign
...
$table->foreignUxidFor(ModelWithUxid::class)
...
Models
use AndreGumieri\LaravelUxid\Database\Eloquent\Concerns\HasUxid;
class User extends Model
{
use HasUxid;
}