Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Uuid

Eloquent Uuid Laravel Package

gbuckingham89/eloquent-uuid

Adds UUID primary key support to Laravel Eloquent models, automatically generating UUIDs on creation so records use string keys instead of auto-incrementing integers. Drop-in trait with minimal configuration required.

View on GitHub
Deep Wiki
Context7

Eloquent UUID is a small Laravel package that adds UUID primary key support to Eloquent models. Instead of auto-incrementing integers, models using the provided trait get a generated UUIDv4 automatically assigned on creation, keeping your schema portable and IDs non-sequential.

It integrates directly with Eloquent's model events, so no changes are needed to your application code beyond adding the trait and adjusting your migrations to use a UUID column type.

  • Automatically generates a UUIDv4 when a model is created
  • Simple trait-based integration with any Eloquent model
  • Keeps $keyType and incrementing settings configured for you
  • Works alongside mass assignment, factories, and existing query builder calls
  • Ideal for distributed systems or exposing non-guessable IDs in URLs
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource