Documentation

Seeder extends Seeder
in package

Table of Contents

$command  : Command
The console command instance.
$container  : Container
The container instance.
__invoke()  : void
Run the database seeds.
call()  : $this
Seed the given connection from the given path.
callSilent()  : void
Silently seed the given connection from the given path.
setCommand()  : $this
Set the console command instance.
setContainer()  : $this
Set the IoC container instance.
resolve()  : Seeder
Resolve an instance of the given seeder class.

Properties

Methods

__invoke()

Run the database seeds.

public __invoke() : void
Tags
throws
InvalidArgumentException
Return values
void

call()

Seed the given connection from the given path.

public call(array<string|int, mixed>|string $class[, bool $silent = false ]) : $this
Parameters
$class : array<string|int, mixed>|string
$silent : bool = false
Return values
$this

callSilent()

Silently seed the given connection from the given path.

public callSilent(array<string|int, mixed>|string $class) : void
Parameters
$class : array<string|int, mixed>|string
Return values
void

setCommand()

Set the console command instance.

public setCommand(Command $command) : $this
Parameters
$command : Command
Return values
$this

setContainer()

Set the IoC container instance.

public setContainer(Container $container) : $this
Parameters
$container : Container
Return values
$this

resolve()

Resolve an instance of the given seeder class.

protected resolve(string $class) : Seeder
Parameters
$class : string
Return values
Seeder

Search results