$filter->equal('customer', trans('Customer'))->select(function($id) {
$customer = Customer::find($id);
if ($customer) {
return [
$customer->customer_id => $customer->username,
];
}
})->ajax('/api/customer/search');
error file: vendor/open-admin-org/open-admin/src/Grid/Filter/Presenter/Select.php: 187