ezitisitis/laravel-uuid

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

v1.4.0 2024-05-08 11:13 UTC

This package is auto-updated.

Last update: 2024-05-08 11:15:38 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.