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.
composer require jamesmills/eloquent-uuid