A Laravel Eloquent Model trait for adding and using a uuid with models: eloquent-uuid
eloquent-uuid is a Laravel package which we can use to add UUID to a model.
The trait listens to the creating event. It generates a new UUID and saves it in the uuid column on the model.
Installation
composer require jamesmills/eloquent-uuid
Source Code
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Packages Sources Laravel 5.8 Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5 Intermediate