marcandreappel/laravel-uuids

Allows the usage of UUIDs in Eloquent models

Installs: 1 436

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/marcandreappel/laravel-uuids

v3.0.1 2022-08-10 08:05 UTC

This package is auto-updated.

Last update: 2025-10-10 14:52:07 UTC


README

In your migrations, replace $table->id(); with $table->uuid('id');.

Add the WithUuids trait in your Eloquent model:

class MyModel extends Model
{
  use WithUuids;
}