Refine for Laravel
A package by Hammerstone

Date With Time Condition

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

The DateWithTimeCondition is an extension of the DateCondition, with the default attribute type set to "date with time".

Therefore, the following two conditions are equivalent:

// Using the Datetime condition.
DateWithTimeCondition::make('published_at');
 
// Using the Date condition, but setting the attribute to datetime.
DateCondition::make('published_at')->attributeIsDateWithTime();

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