
This package allows you to easily work with UUIDs in your Laravel models
UUIDs (Universally Unique Identifiers) are becoming increasingly popular in modern web development, especially with frameworks like Laravel. This package simplifies the process of incorporating UUIDs into Eloquent models, ensuring that developers can easily generate and manage unique identifiers without the hassle of repetitive code. With features to support multiple UUID versions and flexible column configurations, it streamlines the use of UUIDs across projects while maintaining efficiency in database operations.
This package is ideal for those already using Laravel 11 and PHP 8.2, offering compatibility with past versions whilst enhancing the overall performance of Eloquent models. By centralizing UUID functionality, it allows developers to focus on building features rather than managing identifiers, making it an invaluable tool in any Laravel developer's toolkit.
UUID Flexibility: Supports UUID versions 1, 4, 6 (ordered), and 7, allowing developers to choose the right identifier type for their application's needs.
Multi-Column Support: Easily manage multiple UUID columns in a single table using the uuidColumns method, providing versatility for complex database structures.
Custom Column Names: Users can define their own column names for UUID storage through the uuidColumn method, allowing for seamless integration with existing databases.
Configurable Default: Set a project-wide default UUID version in the config file while still allowing individual models to specify their own via the $uuidVersion property.
Ease of Use: Simple integration into Eloquent models by importing a trait, eliminating the need for repetitive setup across projects.
Automatic Handling: The package does not disable auto-incrementing, providing improved database indexing performance without sacrificing the benefits of using UUIDs.
Efficiency in Lookups: Indexed UUID columns ensure that lookups against UUIDs remain efficient, enhancing overall application performance.
Backward Compatibility: Supports compatibility with legacy versions, accommodating users transitioning to newer standards while maintaining functionality for older applications.
