Skip to content

[13.x] Use unique IDs on client model #1757

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

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

hafezdivandari
Copy link
Contributor

Uses \Illuminate\Database\Eloquent\Concerns\HasUniqueIds trait's methods on Client model instead of the old way of generating / assigning unique ID to primary key. It's now much easier to override newUniqueId and use ULID for example (fixes #1706) also avoid the issues like #1491.

Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@hafezdivandari hafezdivandari marked this pull request as ready for review June 24, 2024 00:00
@taylorotwell taylorotwell merged commit 1e3ebb3 into laravel:13.x Jun 27, 2024
7 checks passed
@hafezdivandari hafezdivandari deleted the 13.x-client-unique-ids branch June 27, 2024 11:14
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

Successfully merging this pull request may close these issues.

3 participants