larabeans/uuider

Apiato container to replace primary key type from auto-increment to uuid.

Installs: 78

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 1

Type:larabeans-container

dev-develop 2022-07-17 04:40 UTC

This package is auto-updated.

Last update: 2024-05-25 12:36:38 UTC


README

Larabeans > Uuider

Uuider

APIATO container to modify/replace primary key type from auto-increment to UUID.

Overview

Migrations

Contains new migrations to update core tables primary key type to uuid, which is incremental by default.

Models

Adds new models.

  • Client

  • PersonalAccessClient

  • User, Role and Permission models are used that are provided in core container. If you want to use your own models, write your own model and use HasUuid trait in your custom models. Or just extend existing models and add your custom functionality in those models. You also have to update core config file models values to make this work for your custom models

Environment File

  • Update env file user namespace as USER_NAMESPACE=App\Containers\Larabeans\Core\Models\

OR

Create you own user model and use trait from core container as

    use HasUuid;

Larabeans > Uuider