Do you mean you need to check a date of a document on the server or are you refering to a column in the database?
Or are you talking about session/cookie expiration?
Please spend a few minutes explaining exactly what you are trying to do.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How i can identified this document is expired or not.
Like a person have document expiry date is 11-12-2019
how can i identified it's document expired or not.
If it already casts to a date when getting it using eloquent you can check like this
$result->expiry_date >= Carbon::now();
If this makes no sense to you, please paste your own code so I can help you to get it working.
Please or to participate in this conversation.