/** * Validates a column type as a date */ protected function validateDateTimeValue($value, $column) { $value = DateTimeHelper::instance()->makeCarbon($value, false); if (!$value instanceof Carbon) { throw new ApplicationException(Lang::get('backend::lang.list.invalid_column_datetime', ['column' => $column->columnName])); } return $value; }