Devise\Support\DeviseSeeder::findOrCreateRows PHP Method

findOrCreateRows() protected method

Iterate over all the rows and insert them one by one checking for existing before
protected findOrCreateRows ( string $tableName, array | string $uniqueKeys, $rows, boolean $timestamps = true ) : array
$tableName string
$uniqueKeys array | string
$timestamps boolean
return array
    protected function findOrCreateRows($tableName, $uniqueKeys, $rows, $timestamps = true)
    {
        $records = [];
        foreach ($rows as $row) {
            $records[] = $this->findOrCreateRow($tableName, $uniqueKeys, $row, $timestamps);
        }
        return $records;
    }