Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique Ids never be created #52

Open
nicxlau opened this issue Jul 25, 2024 · 0 comments
Open

Unique Ids never be created #52

nicxlau opened this issue Jul 25, 2024 · 0 comments

Comments

@nicxlau
Copy link

nicxlau commented Jul 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant