class DBSeeder

Supports operations related to database seeding.

Methods

static int
makeSeeder(InputInterface $input)

Creates a class for seeding a database.

static int
seed()

Runs command for seeding database.

static string
seeder(string $seederName)

Returns a string containing contents of a new Seeder class.

Details

at line 19
static int makeSeeder(InputInterface $input)

Creates a class for seeding a database.

Parameters

InputInterface $input

The Symfony InputInterface object.

Return Value

int

A value that indicates success, invalid, or failure.

at line 35
static int seed()

Runs command for seeding database.

Return Value

int

A value that indicates success, invalid, or failure.

at line 48
static string seeder(string $seederName)

Returns a string containing contents of a new Seeder class.

Parameters

string $seederName

The name of the Seeder class.

Return Value

string

The contents of the seeder class.