marcandreappel/laravel-uuids

Allows the usage of UUIDs in Eloquent models

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

This package is auto-updated.

Last update: 2024-12-10 13:00:23 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;
}