'like', ]; public function model() { return Airline::class; } /** * Return the list of airline formatted for a select box * * @param bool $add_blank * @param bool $only_active * * @return array */ public function selectBoxList($add_blank = false, $only_active = true): array { $retval = []; $where = [ 'active' => $only_active, ]; $items = $this->findWhere($where); if ($add_blank) { $retval[''] = ''; } foreach ($items as $i) { $retval[$i->id] = $i->name; } return $retval; } }