Looking to hire Laravel developers? Try LaraJobs

laravel-uuids maintained by marcandreappel

Description
Allows the usage of UUIDs in Eloquent models
Last update
2022/08/10 10:05 (dev-master)
License
Downloads
1 447

Comments
comments powered by Disqus

Laravel-UUIDs

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

Add the WithUuids trait in your Eloquent model:

class MyModel extends Model
{
  use WithUuids;
}