Looking to hire Laravel developers? Try LaraJobs

laravel-uxid maintained by andregumieri

Last update
2026/09/11 23:00 (dev-main)
Links
Downloads
933

Comments
comments powered by Disqus

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