SeedArStates
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.
- run() : mixed
- 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
$command
The console command instance.
protected
Command
$command
$container
The container instance.
protected
Container
$container
Methods
__invoke()
Run the database seeds.
public
__invoke() : void
Tags
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 —run()
public
run() : mixed
Return values
mixed —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