Weave Code
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

Laravel Auto Create Uuid Laravel Package

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.

View on GitHub
Deep Wiki
Context7
3.0.0

Added

  • Laravel Pint configuration (pint.json) using the laravel preset.
  • PHPStan configuration (phpstan.neon.dist) at level 8 with Larastan.
  • Pest test coverage for the $uuid_column property, the overridable getUuidColumn() method, and validation of pre-set UUIDs.
  • keywords, expanded description, and additional README badges in composer.json.

Changed

  • BC Bumped minimum PHP version to 8.2.
  • BC Bumped minimum Laravel version to 10; dropped support for Laravel 7, 8, and 9.
  • Switched UUID validation from Ramsey\Uuid\Uuid::isValid() to Laravel's Str::isUuid() to avoid a direct dependency on the Ramsey package.
  • Code style and docblocks aligned with the Laravel framework conventions.
  • GitHub Actions workflows tightened: 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.

Removed

  • BC Unused Workbench-related composer scripts (prepare, build, start, clear, post-autoload-dump).
  • Legacy .travis.yml, .scrutinizer.yml, .styleci.yml, .php_cs.dist, and .phpunit-watcher.yml configuration files.
  • Direct dependency on ramsey/uuid in the trait (still installed transitively via illuminate/support).
2.6.5

Changed

  • Allow PHP 8.5.
  • Allow Laravel 13 (illuminate/support: ^13.0).
  • Allow Pest 4 in dev requirements.
2.6.4

Added

  • Pest test suite and arch test in place of plain PHPUnit.
  • Larastan and Pint dev dependencies.
  • GitHub Actions workflows for tests, PHPStan, code style auto-fix, and changelog updates.

Changed

  • Replaced the deprecated array $except = null parameter type on replicate() with the explicit nullable syntax ?array $except = null, silencing a PHP 8.4 deprecation warning.
2.6.3

Changed

  • Allow PHP 8.2.
  • Allow Laravel 12 (illuminate/support: ^12.0).
2.6.2

Changed

  • Allow Laravel 11 (illuminate/support: ^11.0).
  • Refresh phpunit.xml.dist for PHPUnit 10.
2.6.1

Changed

  • Minor packaging adjustments.
2.6

Added

  • Laravel 10 support (illuminate/support: ^10.0).
2.5

Added

  • The replicate() override now excludes the UUID column from the cloned attributes so the replica receives a fresh UUID via the replicating event.
  • New fillUuidColumn() method that powers both the creating and replicating event listeners.
2.4

Added

  • Laravel 9 support (illuminate/support: ^9.0).
2.3.1

Changed

  • Bump supported PHP version range.
2.3

Changed

  • Skip UUID generation when a valid UUID is already assigned to the model, preserving manually provided values.
2.2

Added

  • Laravel 8 support (illuminate/support: ^8.0).
  • Automated tests via Orchestra Testbench.
2.1.0

Added

  • Laravel 7 support (illuminate/support: ^7.0).
2.0.0

Added

  • Laravel 6 support (illuminate/support: ^6.0).
  • Continuous integration scaffolding (Travis CI, StyleCI, Scrutinizer).
1.0

Added

  • Initial release. Provides the AutoCreateUuid trait that fills a model's uuid column on creating and exposes a getUuidColumn() hook plus an optional $uuid_column property to customize the column name.
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky