Skip to content

Unique Ids never be created #52

@nicxlau

Description

@nicxlau

when the HasUlids or HasUuids trait from Illuminate\Database\Eloquent\Concerns\HasUniqueIds is used, the events are never triggered

This results in overwriting the performInsert, performUpdate, etc. methods.

There is a better approach for these cases, just overwriting the builder and the example connection: https://github.com/attla/encoded-attributes/blob/ea9a18be17b7ff3a29d993c808530016d84217d6/src/HasEncodedAttributes.php#L27

This means there is no need to overwrite each original laravel method and maintain frictionless with new laravel updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions