be aware that last()
, latest()
are not deterministic if you are looking for a sequential or event/ordered record. The last/recent records can have the exact same created_at
timestamp, and which you get back is not deterministic. So do orderBy(id|foo)->first()
. Other ideas/suggestions on how to be deterministic are welcome.