bdelespierre/laravel-has-uuid
Provides support for UUID key type in Eloquent models
Maintainers
Requires
- php: ^7.1|^8.0
- illuminate/support: ~10
- webpatser/laravel-uuid: ^4.0
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^9.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT f861d0da673882ff05921c8b9dac74cec87fa2f2
- Benjamin Delespierre <benjamin.woop@delespierre.pro>
This package is auto-updated.
Last update: 2026-06-09 20:47:24 UTC
README
Laravel Has UUID
👁 Latest Version on Packagist
👁 Total Downloads
👁 Build Status
👁 StyleCI
👁 Quality Score
Provides support for UUID primary keys in Eloquent models. Built on top of webpatser/laravel-uuid ❤️
Installation
Via Composer
$ composer require bdelespierre/laravel-has-uuid
Usage
namespace App\Models; use Bdelespierre\HasUuid\HasUuid; use Illuminate\Database\Eloquent\Model; class User extends Model { use HasUuid; }
Migration:
Schema::create('users', function (Blueprint $table) { $table->uuid('id')->primary(); // other properties go here... });
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email benjamin.delespierre@gmail.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
