neelbhanushali/laravel-uuid

A trait that provides support for uuid for eloquent models.

Maintainers

Package info

github.com/neelbhanushali/laravel-uuid

pkg:composer/neelbhanushali/laravel-uuid

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0 2019-10-29 17:57 UTC

This package is auto-updated.

Last update: 2026-03-01 00:30:22 UTC


README

A trait that provides support for uuid for eloquent models.

composer require neelbhanushali/laravel-uuid

  • use NeelBhanushali\LaravelUUID\Traits\HasUUID trait in your Eloquent Model.
  • Make sure the primary key in the migration for that model is added using $table->uuid('KEY_NAME')->primary();.