Метод | Описание | |
---|---|---|
findOrCreateRow ( string $tableName, array $uniqueKeys, array $data, $timestamps = true ) : StdObject | We are creating a new page when it does not exist already. | |
run ( ) : void | Run the database seeds. |
Метод | Описание | |
---|---|---|
callOnlyOnce ( [type] $seederClass ) : [type] | This gives us the ability to call the seeds only once. We will keep up with what classes have ran in the database and that way we know which ones to call and which ones not to call. | |
findOrCreateRows ( string $tableName, array | string $uniqueKeys, $rows, boolean $timestamps = true ) : array | Iterate over all the rows and insert them one by one checking for existing before | |
findRow ( string $tableName, array $uniqueKeys, array $data ) : StdObject | Search for the row with these unique keys |
protected callOnlyOnce ( [type] $seederClass ) : [type] | ||
$seederClass | [type] | |
Результат | [type] |