protected function validateDateTimeValue($value, $column)
    {
        $value = DateTimeHelper::makeCarbon($value, false);

        if (!$value instanceof Carbon) {
            throw new ApplicationException(Lang::get(
                'backend::lang.list.invalid_column_datetime',
                ['column' => $column->columnName]
            ));
        }

        return $value;
    }
protected function validateDateTimeValue($value, $column)
    {
        $value = DateTimeHelper::makeCarbon($value, false);

        if (!$value instanceof Carbon) {
            throw new ApplicationException(Lang::get(
                'backend::lang.list.invalid_column_datetime',
                ['column' => $column->columnName]
            ));
        }

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