Skip to content

Instantly share code, notes, and snippets.

@dvlpp
Created August 22, 2019 10:08
Show Gist options
  • Save dvlpp/e8417fe96e54d5f212a3444d1dfc98ff to your computer and use it in GitHub Desktop.
Save dvlpp/e8417fe96e54d5f212a3444d1dfc98ff to your computer and use it in GitHub Desktop.
PassengerBirthdateFilter
class PassengerBirthdateFilter implements EntityListDateRangeRequiredFilter
{
public function label()
{
return "Born between";
}
public function defaultValue()
{
return [
"start" => (new Carbon())->setDate(2014,1,1),
"end" => (new Carbon())->setDate(2014,12,31),
];
}
public function dateFormat()
{
return "YYYY-MM-DD";
}
public function isMondayFirst()
{
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment