{"record":{"id":"82a6673403fa59ac","repo":"krayin/laravel-crm","slug":"boolean-filters-will-only-work-with-dropdown-typ","errorCode":null,"errorMessage":"Boolean filters will only work with `dropdown` type. Either remove the `filterable_type` or set it to `dropdown`.","messagePattern":"Boolean filters will only work with `dropdown` type\\. Either remove the `filterable_type` or set it to `dropdown`\\.","errorType":"exception","errorClass":"InvalidColumnException","httpStatus":null,"severity":"error","filePath":"packages/Webkul/DataGrid/src/ColumnTypes/Boolean.php","lineNumber":20,"sourceCode":"\nnamespace Webkul\\DataGrid\\ColumnTypes;\n\nuse Webkul\\DataGrid\\Column;\nuse Webkul\\DataGrid\\Enums\\FilterTypeEnum;\nuse Webkul\\DataGrid\\Exceptions\\InvalidColumnException;\n\nclass Boolean extends Column\n{\n    /**\n     * Set filterable type.\n     */\n    public function setFilterableType(?string $filterableType): void\n    {\n        if (\n            $filterableType\n            && ($filterableType !== FilterTypeEnum::DROPDOWN->value)\n        ) {\n            throw new InvalidColumnException('Boolean filters will only work with `dropdown` type. Either remove the `filterable_type` or set it to `dropdown`.');\n        }\n\n        if (! $filterableType) {\n            $filterableType = FilterTypeEnum::DROPDOWN->value;\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 = [\n                [\n                    'label' => trans('admin::app.components.datagrid.filters.boolean-options.true'),","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/krayin/laravel-crm/blob/13d6988cda8d69ece45ee1890effc90a7f21cdc1/packages/Webkul/DataGrid/src/ColumnTypes/Boolean.php#L2-L38","documentation":"Error \"Boolean filters will only work with `dropdown` type. Either remove the `filterable_type` or set it to `dropdown`.\" thrown in krayin/laravel-crm.","triggerScenarios":"Thrown at packages/Webkul/DataGrid/src/ColumnTypes/Boolean.php:20 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"}