ezitisitis/laravel-uuid

This package provides fast and furious UUID as primary key implementation instead of autoincrement

v2.0.0 2024-08-06 10:32 UTC

This package is auto-updated.

Last update: 2024-12-06 11:21:50 UTC


README

Buy Me A Coffee

Installing

$ composer require ezitisitis/laravel-uuid

Usage

Replace Laravel model extension (example below)

use Illuminate\Database\Eloquent\Model;

class MyAwesomeModel extends Model
{

With

use EzitisItIs\LaravelUuid\Model;

class MyAwesomeModel extends Model
{

If you set $incrementing = true; then it will continue to use incrementing ID.

Credits