LaravelPackages.net
Acme Inc.
Toggle sidebar
marcandreappel/laravel-uuids

Allows the usage of UUIDs in Eloquent models

1.450
0
v3.0.1
About marcandreappel/laravel-uuids

marcandreappel/laravel-uuids is a Laravel package for allows the usage of uuids in eloquent models. It currently has 0 GitHub stars and 1.450 downloads on Packagist (latest version v3.0.1). Install it with composer require marcandreappel/laravel-uuids. Discover more Laravel packages by marcandreappel or browse all Laravel packages to compare alternatives.

Last updated

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