A laravel-admin filter extension that enables multiple filters to be displayed on one row.
composer require huo-zi/laravel-admin-ext-filter
$filter->row('label_name', function (Filter $filter) {
$filter->equal('col_foo', 'text_column');
$filter->equal('col_bar', 'select_column')->select();
$filter->equal('col_baz', 'time_filter')->date();
});
When you use filter presenter select
, the default placeholder
is trans('admin.choose')
, you can use config
to change it.
$filter->equal('col_bar')->select()->config('placeholder', 'select_label');
🚨 Not support filter presenter radio
checkbox
.
Licensed under The MIT License (MIT).