final class DatabaseSeederGenerator

Generator for dist/database/seeders/DatabaseSeeder.php.

Constants

INTENT

The left padding for the body of the generated.

Methods

void
run(bool $force = false)

Run the generator logic and save it.

make(array $tables, string|null $namespace = null, string|null $destination = null)

Create a instance.

Details

at line 42
void run(bool $force = false)

Run the generator logic and save it.

Parameters

bool $force

Return Value

void

at line 72
static DatabaseSeederGenerator make(array $tables, string|null $namespace = null, string|null $destination = null)

Create a instance.

Parameters

array $tables

The model class name

string|null $namespace

The model namespace

string|null $destination

The path to the dist folder

Return Value

DatabaseSeederGenerator