laravel 添加筛选方式
protected function grid() { return Admin::grid(Client::class, function (Grid $grid) { $grid->id('ID')->sortable(); $grid->filter(function($filter){ $filter->equal('id', '2'); }); }); }
新加模块
protected function grid() { return Admin::grid(Client::class, function (Grid $grid) { $grid->id('ID')->sortable(); $grid->filter(function($filter){ $filter->equal('id', '2'); }); }); }
新加模块