Refine for Laravel
A package by Hammerstone

UNIX Timestamp Condition

Refine is a paid package. To purchase, head to hammerstone.dev.

The UnixTimestampCondition is an extension of the DateCondition, with the default attribute type set to "unix timestamp".

Therefore, the following two conditions are equivalent:

// Using the UnixTimestampCondition condition.
UnixTimestampCondition::make('published_at');
 
// Using the Date condition, but setting the attribute to timestamp.
DateCondition::make('published_at')->attributeIsUnixTimestamp();

To see what else is available to you, please read the DateCondition documentation.