bills()->get(['bills.*']); $list = []; /** @var BillModel $bill */ foreach ($result as $bill) { $list[$bill->id] = $bill->name . ' [' . $bill->match . ']'; } asort($list); array_unshift($list, trans('firefly.csv_do_not_map')); return $list; } }