Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pavlen's avatar

Get latest updated row date

Hi,

is there some Eloquent function to get update_at value from table ? Just to get date and time of last updated row. I can to this with basic query, but I am interested is there some better solution ?

Tnx,

Pavle

0 likes
3 replies
d3xt3r's avatar

Order by updated_at and take 1 and look at updated_at field ??? Whats troubling you ?

pavlen's avatar

Hi, nothing :) Doing just like you :) But just ask is there maybe other solution...

Tnx for time

d3xt3r's avatar

if you just wanted the date and time, not the row, you could simply use max(updated_at)

Please or to participate in this conversation.