Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Laravel package to generate and to validate a UUID according to the RFC 4122 standard. Only support for version 1, 3, 4 and 5 UUID are built-in.

Notifications You must be signed in to change notification settings

webpatser/laravel-uuid

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel UUID Integration

Total Downloads PHP Version Laravel Version License

Laravel package for generating and working with UUIDs. Automatic UUID model keys, validation rules, and Eloquent support.

Installation

composer require webpatser/laravel-uuid

Requirements: PHP 8.2+, Laravel 11.x or 12.x

Quick Start

use Illuminate\Support\Str;
use Webpatser\LaravelUuid\HasUuids;

// High-performance UUID generation
$uuid = Str::fastUuid();                // 15% faster than Str::uuid()
$ordered = Str::fastOrderedUuid();      // Database-optimized

// Eloquent model integration
class User extends Model 
{
    use HasUuids; // Automatic UUID generation
}

Documentation

For complete documentation, examples, and API reference, visit:

https://documentation.downsized.nl/laravel-uuid

License

MIT License.

About

Laravel package to generate and to validate a UUID according to the RFC 4122 standard. Only support for version 1, 3, 4 and 5 UUID are built-in.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.