LaravelPackages.net
Acme Inc.
Toggle sidebar
cownet/laravel-uuid

Laravel extension for UUID use in model

137.533
0
v0.1.6
About cownet/laravel-uuid

cownet/laravel-uuid is a Laravel package for laravel extension for uuid use in model. It currently has 0 GitHub stars and 137.533 downloads on Packagist (latest version v0.1.6). Install it with composer require cownet/laravel-uuid. Discover more Laravel packages by cownet or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments