laravel-primary-key-uuid maintained by andach
Description
This is an incredibly simple package to add a simple trait for Laravel models where the primary key is a UUID.
Author
Last update
2026/07/02 15:53
(v1.0.3)
License
Downloads
697
Tags
This is my package laravel-primary-key-uuid
This is an incredibly simple package to add a simple trait for Laravel models where the primary key is a UUID.
Installation
You can install the package via composer:
composer require andach/laravel-primary-key-uuid
There are no migrations, views or config file.
Usage
<?php
namespace App\Models;
use Andach\LaravelPrimaryKeyUuid\Traits\PrimaryKeyUUID;
class MyModel extends Model
{
use PrimaryKeyUUID;
// ...
}
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.