Download the PHP package hpolthof/laravel-eloquent-uuid without Composer
On this page you can find all versions of the php package hpolthof/laravel-eloquent-uuid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hpolthof/laravel-eloquent-uuid
More information about hpolthof/laravel-eloquent-uuid
Files in hpolthof/laravel-eloquent-uuid
Package laravel-eloquent-uuid
Short Description Add support for UUIDs to Eloquent
License
Informations about the package laravel-eloquent-uuid
Laravel Eloquent UUID
Allow the usage of UUID in a MySQL setup.
How to install?
Install the repository with composer
Laravel should auto-discover the required service providers.
How to use?
The package requires dyrynda/laravel-efficient-uuid, this package will override the default behaviour of Laravel so that a migration will not become a but a field.
Trait
Next up you should use the trait in your Eloquent model.
You'll have to add a method to your model. This should return an array with the fields that are UUIDs.
Primary Key
If you've added your primary key as a UUID column, the model will automatically set a new UUID on the creation of the model into the database.
Disclaimer
This package is used for internal development, but published for public use. Obviously this software comes as is, and there are no warranties or whatsoever.
If you like the package it is always appreciated if you drop a message of gratitude! ;-)
The package was build by: Paul Olthof
All versions of laravel-eloquent-uuid with dependencies
dyrynda/laravel-efficient-uuid Version ^2.3
ramsey/uuid Version ~3.8
moontoast/math Version ^1.1