Download the PHP package kblais/laravel-uuid without Composer
On this page you can find all versions of the php package kblais/laravel-uuid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kblais/laravel-uuid
More information about kblais/laravel-uuid
Files in kblais/laravel-uuid
Download kblais/laravel-uuid
More information about kblais/laravel-uuid
Files in kblais/laravel-uuid
Vendor kblais
Package laravel-uuid
Short Description A simple library to use UUIDs as your Eloquent model's primary key.
License MIT
Package laravel-uuid
Short Description A simple library to use UUIDs as your Eloquent model's primary key.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-uuid
laravel-uuid
A simple library to use UUIDs as your Eloquent model's primary key.
Why should I use UUIDs ?
To answer this question, I simply recommend you read this blog post.
OK, I'm convinced now. How do I install this ?
Require this package with Composer :
- the package internally use ramsey/uuid to generate the UUIDs.
Usage
First, your model's column must be a 36 characters column :
-
Laravel v4
- Laravel v5+
Then, just add the Kblais\Uuid\Uuid
trait to your model, and you're done :
Version 4 UUIDs are used by default. You can change this by overriding the $uuidVersion & $uuidString
variables. For example :
The supported UUIDs versions here are "1, 3, 4 and 5".
All versions of laravel-uuid with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
illuminate/database Version ^9.33.0|^10.0|^11.0
ramsey/uuid Version ^3.4|^4.0
illuminate/database Version ^9.33.0|^10.0|^11.0
ramsey/uuid Version ^3.4|^4.0
The package kblais/laravel-uuid contains the following files
Loading the files please wait ....