krayin/laravel-crm · error · InvalidColumnException
Boolean filters will only work with `dropdown` type. Either
Error message
Boolean filters will only work with `dropdown` type. Either remove the `filterable_type` or set it to `dropdown`.
What it means
Error "Boolean filters will only work with `dropdown` type. Either remove the `filterable_type` or set it to `dropdown`." thrown in krayin/laravel-crm.
Source
Thrown at packages/Webkul/DataGrid/src/ColumnTypes/Boolean.php:20
namespace Webkul\DataGrid\ColumnTypes;
use Webkul\DataGrid\Column;
use Webkul\DataGrid\Enums\FilterTypeEnum;
use Webkul\DataGrid\Exceptions\InvalidColumnException;
class Boolean extends Column
{
/**
* Set filterable type.
*/
public function setFilterableType(?string $filterableType): void
{
if (
$filterableType
&& ($filterableType !== FilterTypeEnum::DROPDOWN->value)
) {
throw new InvalidColumnException('Boolean filters will only work with `dropdown` type. Either remove the `filterable_type` or set it to `dropdown`.');
}
if (! $filterableType) {
$filterableType = FilterTypeEnum::DROPDOWN->value;
}
parent::setFilterableType($filterableType);
}
/**
* Set filterable options.
*/
public function setFilterableOptions(mixed $filterableOptions): void
{
if (empty($filterableOptions)) {
$filterableOptions = [
[
'label' => trans('admin::app.components.datagrid.filters.boolean-options.true'),View on GitHub (pinned to 13d6988cda)
When it happens
Trigger: Thrown at packages/Webkul/DataGrid/src/ColumnTypes/Boolean.php:20 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of krayin/laravel-crm@13d6988cda (2026-08-17).
Data as JSON: /api/errors/82a6673403fa59ac.
Report an issue: GitHub.