Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.
webpatser/laravel-uuid is a Laravel package for laravel integration for webpatser/uuid - high-performance drop-in uuid replacements (15% faster than ramsey). provides str macros, hasuuids trait, facades, and casts. rfc 4122/9562 compliant..
It currently has 1.801 GitHub stars and 18.096.059 downloads on Packagist (latest version v7.0.1).
Install it with composer require webpatser/laravel-uuid.
Discover more Laravel packages by webpatser
or browse all Laravel packages to compare alternatives.
Last updated
Laravel package for generating and working with UUIDs. Automatic UUID model keys, validation rules, and Eloquent support.
composer require webpatser/laravel-uuid
Requirements: PHP 8.5+, Laravel 13.x
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
}
For complete documentation, examples, and API reference, visit:
https://documentation.downsized.nl/laravel-uuid
MIT License.