Skip to content

cownet/laravel-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Travis CLI License

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.

About

Laravel extension for UUID use in model.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages