andregumieri/laravel-uxid

There is no license information available for the latest version (1.0.4) of this package.

Installs: 420

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/andregumieri/laravel-uxid

1.0.4 2025-09-24 11:06 UTC

This package is auto-updated.

Last update: 2025-09-24 11:07:43 UTC


README

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;
}