public static function argYear(Query $query, $value, &$q) { $query->where('post_date_object.year', $value); }