z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.14k stars 2.81k forks source link

how to rename the grid filter id #5638

Closed Sivan4562 closed 1 year ago

Sivan4562 commented 2 years ago

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??

Yanghsuanming commented 2 years ago
        $grid->filter(function($filter){
            $filter->disableIdFilter();
            ....
           // create new one.
Sivan4562 commented 2 years ago

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??

Yanghsuanming commented 2 years ago
image
Sivan4562 commented 1 year ago

Thanks @Xuan-Goldenf Now it working fine.