laravel-admin icon indicating copy to clipboard operation
laravel-admin copied to clipboard

how to rename the grid filter id

Open Sivan4562 opened this issue 1 year ago • 3 comments

  • Laravel Version: 5.6.39
  • PHP Version: 73
  • Laravel-admin: 1.6

Description:

I want to rename the grid filter id name eg: the default name show ID but I want to rename it to Driver Id. it is possible in laravel admin??

Sivan4562 avatar Aug 09 '22 13:08 Sivan4562

        $grid->filter(function($filter){
            $filter->disableIdFilter();
            ....
           // create new one.

Yanghsuanming avatar Aug 23 '22 02:08 Yanghsuanming

I can use the $filter->disableIdFilter(); function and add the new one like $filter->like('id','Sum ID'); but it does not show in the filter box but i remove the disableIdFilter() it can show two fields for id and SumID. what can do for this scenario??

Sivan4562 avatar Aug 23 '22 07:08 Sivan4562

image

Yanghsuanming avatar Aug 31 '22 07:08 Yanghsuanming