Unique identifier of persistent rows, using Eloquent\Model #42391
Unanswered
marcellofuschi
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all! Just wanted to see if this would be a desired addition.
Sometimes I needed to do things like removing duplicates from a collection of Eloquent models that come from different tables.
I thought that the same technique that is used in
Model::is
can be reused to uniquely identify the DB row represented by the model.This would make it available:
Edit: I created a PR
Beta Was this translation helpful? Give feedback.
All reactions