cownet / laravel-uuid
Laravel extension for UUID use in model
Installs: 133 602
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- flynowpaylater/laravel-uuid: dev-master
- illuminate/database: *
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is not auto-updated.
Last update: 2024-11-21 20:43:40 UTC
README
Laravel UUID
Laravel extension for UUID use in model. This library is a wrapper that allows WebPatser UUID library to auto-integrate within Laravel eloquent model.
Installation
Using composer
composer require cownet/laravel-uuid
Setup
Change model namespace from
use Illuminate\Database\Eloquent\Model;
To
use Cownet\Laravel\Uuid\Model;
To enable UUID in your model, as per Laravel's documentation, apply public $incrementing = false;
on your model
and it will have UUID support instead of auto incrementing.