2017 © Pedro Peláez
 

library eloquent-uuid

Eloquent models UUID traits

image

vistag/eloquent-uuid

Eloquent models UUID traits

  • Tuesday, February 6, 2018
  • by vistag
  • Repository
  • 0 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Eloquent UUID Traits

Laravel package with Eloquent models UUID1 and UUID4 traits that will let you generate UUIDs for your Eloquent models automatically., (*1)

Installation

You can install this package via composer using this command:, (*2)

``` bash composer require vistag/eloquent-uuid, (*3)


## Usage ### Models To set up a model to use UUID, simply use HasUuid1 or HasUuid4 trait. #### UUID1 Example ``` php use Illuminate\Database\Eloquent\Model; use Vistag\EloquentUuid\HasUuid1; class Item extends Model { use HasUuid1; .... }

UUID4 Example

``` php use Illuminate\Database\Eloquent\Model; use Vistag\EloquentUuid\HasUuid4;, (*4)

class Item extends Model { use HasUuid4;, (*5)

...., (*6)

} ```, (*7)

Support

If you believe you have found an issue, please report it using the GitHub issue tracker, or better yet, fork the repository and submit a pull request., (*8)

If you're using this package, I'd love to hear your thoughts. Thanks!, (*9)

License

The MIT License (MIT). Vistag.com, (*10)

The Versions

06/02 2018

dev-master

9999999-dev https://github.com/VistagGit/eloquent-uuid

Eloquent models UUID traits

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel uuid identifier guid eloquent trait