Skip to content

huo-zi/laravel-admin-ext-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-admin extension RowFilter

A laravel-admin filter extension that enables multiple filters to be displayed on one row.

Installation

composer require huo-zi/laravel-admin-ext-filter

Usage

$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.

License

Licensed under The MIT License (MIT).