abstract class Seeder

Properties

protected Container $container

The container instance.

protected Command $command

The console command instance.

Methods

void
call(string $class)

Seed the given connection from the given path.

void
callSilent(string $class)

Silently seed the given connection from the given path.

resolve(string $class)

Resolve an instance of the given seeder class.

$this
setContainer(Container $container)

Set the IoC container instance.

$this
setCommand(Command $command)

Set the console command instance.

void
__invoke()

Run the database seeds.

Details

at line 31
void call(string $class)

Seed the given connection from the given path.

Parameters

string $class

Return Value

void

at line 46
void callSilent(string $class)

Silently seed the given connection from the given path.

Parameters

string $class

Return Value

void

at line 57
protected Seeder resolve(string $class)

Resolve an instance of the given seeder class.

Parameters

string $class

Return Value

Seeder

at line 80
$this setContainer(Container $container)

Set the IoC container instance.

Parameters

Container $container

Return Value

$this

at line 93
$this setCommand(Command $command)

Set the console command instance.

Parameters

Command $command

Return Value

$this

at line 107
void __invoke()

Run the database seeds.

Return Value

void

Exceptions

InvalidArgumentException