public function getChildrenForSelect() { $array = []; foreach (Child::all() as $child) { $array[$child->id] = $child->fio . ' / ' . $child->card_number; } return $array; }
/** * Importer constructor. */ public function __construct() { $this->children = Child::all()->pluck('fio', 'card_number'); }