glorand/laravel-eloquent-model-uuid
Adds UUID primary keys to Laravel Eloquent models via a simple trait. Automatically generates unique IDs on model creation, keeps database keys non-sequential, and makes records safe to expose in URLs and distributed systems without leaking counts.
The 4.0.0 release is a compatibility release: it adds Laravel 9 support. There are no documented new package-level features in the release note, so treat this as a framework/runtime support bump and validate your existing integration on Laravel 9.
Minimal upgrade path:
composer.json to ^4.0 and run composer update.php artisan vendor:publish --provider="Vendor\\Package\\PackageServiceProvider" --tag=config
php artisan package:discover
php artisan config:clear
Where to look first:
composer.json of the package for Laravel/PHP constraints.First use case: upgrade an existing Laravel 8 application to Laravel 9 while keeping the package’s day-to-day API unchanged. Install the package in a fresh Laravel 9 skeleton first to isolate framework compatibility issues from application-specific ones.
Because the release note only documents Laravel 9 support, the day-to-day usage patterns remain the same as previous major versions. The Laravel 9-specific patterns are about dependency resolution and runtime compatibility.
Typical integration patterns:
config/*.php and .env. Use config() inside your own code rather than reading env() directly, especially with config caching.AppServiceProvider::register() after the package provider has run.A safe rollout pattern:
composer why-not vendor/package 4.0.0 to identify conflicting constraints.composer why-not and composer update --with-all-dependencies carefully.php artisan config:clear. In production, config:cache will freeze values; ensure deploy scripts clear and rebuild caches.php artisan package:discover and check bootstrap/cache/packages.php.composer show vendor/package, composer why-not, and php artisan about to confirm framework and package versions. For container errors, inspect the provider’s register() and boot() methods and clear compiled services with php artisan clear-compiled.How can I help you explore Laravel packages today?