'Seriales', 'abbreviation' => 'ser', 'allows_decimals' => false], ['name' => 'Pieza', 'abbreviation' => 'u', 'allows_decimals' => true], ['name' => 'Kilogramo', 'abbreviation' => 'kg', 'allows_decimals' => true], ['name' => 'Litro', 'abbreviation' => 'L', 'allows_decimals' => true], ['name' => 'Metro', 'abbreviation' => 'm', 'allows_decimals' => true], ]; foreach ($units as $unit) { UnitOfMeasurement::firstOrCreate( ['name' => $unit['name']], $unit ); } } }