abstract class Seeder

Abstract class for seeders.

Methods

void
run()

All seeders must implement the run method.

void
call(string|array $seederClass)

Processes parameters provided and calls seed class to perform actual work. This function accepts a string or an array of strings.

void
seed(string $seederClass)

Performs seeding of data.

Details

at line 16
abstract void run()

All seeders must implement the run method.

Return Value

void

at line 26
protected void call(string|array $seederClass)

Processes parameters provided and calls seed class to perform actual work. This function accepts a string or an array of strings.

Parameters

string|array $seederClass

The name of the seeder class or array of seeder classes.

Return Value

void

at line 46
private void seed(string $seederClass)

Performs seeding of data.

Parameters

string $seederClass

The name of the seeder class.

Return Value

void