{"record":{"id":"68b9cdea18dafbcd","repo":"krayin/laravel-crm","slug":"datetime-filters-will-only-work-with-datetime-ran","errorCode":null,"errorMessage":"Datetime filters will only work with `datetime_range` type. Either remove the `filterable_type` or set it to `datetime_range`.","messagePattern":"Datetime filters will only work with `datetime_range` type\\. Either remove the `filterable_type` or set it to `datetime_range`\\.","errorType":"exception","errorClass":"InvalidColumnException","httpStatus":null,"severity":"error","filePath":"packages/Webkul/DataGrid/src/ColumnTypes/Datetime.php","lineNumber":21,"sourceCode":"namespace Webkul\\DataGrid\\ColumnTypes;\n\nuse Webkul\\DataGrid\\Column;\nuse Webkul\\DataGrid\\Enums\\DateRangeOptionEnum;\nuse Webkul\\DataGrid\\Enums\\FilterTypeEnum;\nuse Webkul\\DataGrid\\Exceptions\\InvalidColumnException;\n\nclass Datetime extends Column\n{\n    /**\n     * Set filterable type.\n     */\n    public function setFilterableType(?string $filterableType): void\n    {\n        if (\n            $filterableType\n            && ($filterableType !== FilterTypeEnum::DATETIME_RANGE->value)\n        ) {\n            throw new InvalidColumnException('Datetime filters will only work with `datetime_range` type. Either remove the `filterable_type` or set it to `datetime_range`.');\n        }\n\n        parent::setFilterableType($filterableType);\n    }\n\n    /**\n     * Set filterable options.\n     */\n    public function setFilterableOptions(mixed $filterableOptions): void\n    {\n        if (empty($filterableOptions)) {\n            $filterableOptions = DateRangeOptionEnum::options();\n        }\n\n        parent::setFilterableOptions($filterableOptions);\n    }\n\n    /**","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/krayin/laravel-crm/blob/13d6988cda8d69ece45ee1890effc90a7f21cdc1/packages/Webkul/DataGrid/src/ColumnTypes/Datetime.php#L3-L39","documentation":"Error \"Datetime filters will only work with `datetime_range` type. Either remove the `filterable_type` or set it to `datetime_range`.\" thrown in krayin/laravel-crm.","triggerScenarios":"Thrown at packages/Webkul/DataGrid/src/ColumnTypes/Datetime.php:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13d6988cda8d69ece45ee1890effc90a7f21cdc1","analyzedAt":"2026-08-17T00:58:29.000Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}