Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from SolumDeSignum/dev
Browse files Browse the repository at this point in the history
READM.MD update
  • Loading branch information
Faks authored Jan 14, 2021
2 parents c5c587c + eb2af34 commit 5cd0365
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# eloquent-uuid
An Eloquent UUID Trait to use with Laravel 5.1 - 5.4
An Eloquent UUID Trait to use with Laravel 5.x - 9.x

[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE)
[![Total Downloads](https://poser.pugx.org/alsofronie/eloquent-uuid/downloads)](https://packagist.org/packages/alsofronie/eloquent-uuid)

It **should** work with Laravel 5.0 also, but it's untested.

The trait overwrites the static `boot` method and listens to the `creating`
event. It generates a UUID (strips the dashes) and stores it in the primary
key attribute. Thus, you'll need a `CHAR(32)` primary key for your model
(see migrations below).

## Installation

composer require alsofronie/eloquent-uuid:dev-master
composer require alsofronie/eloquent-uuid

## Use

Expand Down

0 comments on commit 5cd0365

Please sign in to comment.