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