/** * @param array $row */ private function exportToDb($row) { if (isset($this->children[(int) $row[2]])) { return; } Child::create(['fio' => $row[0], 'card_number' => $row[2]]); }
private function exportToDb(array $row) { Child::create(['fio' => $row[0], 'card_number' => $row[2]]); }
public function create($attributes) { $child = Child::create($attributes); $this->syncParents($child, $attributes); return $child; }
private function createChild() { return \App\Models\Child::create(['fio' => 'Ребенок Иванова ' . rand(1, 10000), 'class' => rand(1, 11), 'class_char' => 'A', 'card_number' => rand(1000, 99999), 'city' => 'Кемерово', 'school_number' => rand(10, 100)]); }