Devise\Support\DeviseSeeder::findOrCreateRows PHP 메소드

findOrCreateRows() 보호된 메소드

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
리턴 array
    protected function findOrCreateRows($tableName, $uniqueKeys, $rows, $timestamps = true)
    {
        $records = [];
        foreach ($rows as $row) {
            $records[] = $this->findOrCreateRow($tableName, $uniqueKeys, $row, $timestamps);
        }
        return $records;
    }