Laravel UUID package

3.0.1 2022-02-09 09:03 UTC

This package is auto-updated.

Last update: 2022-06-09 09:48:51 UTC


UUID's on Laravel models

Header Image

tests badge version badge downloads badge

Laravel UUID, a UUID helper Library

Support us

We invest a lot in creating open source packages, and would be grateful for a sponsor if you make money from your product that uses them.


This package can be used in Laravel 6.0 or higher.

You can install the package via composer:

composer require macsidigital/laravel-uuid


This is quite a simple package, which can be used to override the primary key to uuid, or to add an additional uuid field, our preferred option to keep an incrementing index.

Add a uuid field

	// primary key implementation
    // or implementation for additional field



That's it! unless we use a different column name for the uuid field, then we add the following method.

	 public function uuidColumn(): string
        return 'id';


Please see CHANGELOG for more information on what has changed recently.


Please see CONTRIBUTING for details.


If you discover any security-related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.