stevenmaguire/laravel-uuid-model
Larablocks Analysis
stevenmaguire/laravel-uuid-model works with Laravel 5 (latest release 0.1.0, Oct 22, 2015), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Oct 22, 2015)
- 0 downloads a month (needs 10,000)
- 4 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Oct 22, 2015.
- No releases in the last 12 months.
- First released: Oct 22, 2015.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require stevenmaguire/laravel-uuid-model |
|
| Latest Version: | 0.1.0 |
| PHP: | >=5.5.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Oct 29, 2015 |
| Links: | GitHub · Packagist |
Laravel Uuid Model
Create non-incrementing models whose primary key is a UUID.
Install
Via Composer
$ composer require stevenmaguire/laravel-uuid-model
Usage
Extend the UuidModel
class User extends Stevenmaguire\Laravel\UuidModel
{
//
}
By default any model that extends the UuidModel will automatically assign a random UUID value to the primaryKey while creating.
To include custom "UUID attributes", each model that extends the UuidModel can declare those attributes as an array value for the uuidAttributes property.
class User extends Stevenmaguire\Laravel\UuidModel
{
/**
* Auto-assigned uuid model attributes.
*
* @var array
*/
public $uuidAttributes = ['foo', 'bar'];
}
This will result in the model's primary key, id, foo, and bar all being automatically assigned a random UUID value.
Testing
$ ./vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email stevenmaguire@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Alternatives to stevenmaguire/laravel-uuid-model
Laravel package for ULID (Universally Unique Lexicographically Sortable Identifi...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.1.0 | >=5.5.0 | ^5.0 | MIT |