mindtwo/laravel-auto-create-uuid
Auto-fill a UUID v4 on Eloquent models when creating or replicating. Add a trait, add a uuid column, and it just works—no config. Supports custom UUID column names and ensures replicas get a fresh UUID by excluding the UUID attribute on replicate.
This is a major release. Drops EOL Laravel (7-9) and PHP (8.0/8.1), modernizes the tooling, and aligns docblocks with Laravel core conventions. No runtime behavior change for existing callers on a supported platform.
prepare, build, start, clear, post-autoload-dump), they have been removed.pint.json) using the laravel preset.phpstan.neon.dist) at level 8 with Larastan.$uuid_column property, the overridable getUuidColumn() method, and validation of pre-set UUIDs.keywords, expanded description, and additional README badges in composer.json.Ramsey\Uuid\Uuid::isValid() to Laravel's Str::isUuid() to avoid a direct dependency on the Ramsey package.run-tests, phpstan, fix-php-code-style-issues, and update-changelog now reference the master branch consistently and the test matrix covers PHP 8.2 - 8.4 against Laravel 10 - 13.prepare, build, start, clear, post-autoload-dump)..travis.yml, .scrutinizer.yml, .styleci.yml, .php_cs.dist, and .phpunit-watcher.yml configuration files.ramsey/uuid in the trait (still installed transitively via illuminate/support).Full Changelog: https://github.com/mindtwo/laravel-auto-create-uuid/compare/2.6.5...3.0
Full Changelog: https://github.com/mindtwo/laravel-auto-create-uuid/compare/2.6.4...2.6.5
How can I help you explore Laravel packages today?