class
Illuminate
/
Database
/
Seeder
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abstract
Seeder
Properties
protected
static
$called array
Seeders that have been called at least one time.
Default: []
Methods
public
call ( $class , $silent , array $parameters ) : $this
Run the given seeder class.
Parameters
- $class array|string
- $silent bool
- $parameters array
public
callWith ( $class , array $parameters ) : void
Run the given seeder class.
Parameters
- $class array|string
- $parameters array
public
callSilent ( $class , array $parameters ) : void
Silently run the given seeder class.
Parameters
- $class array|string
- $parameters array
public
callOnce ( $class , $silent , array $parameters ) : void
Run the given seeder class once.
Parameters
- $class array|string
- $silent bool
protected
resolve ( $class ) : Seeder
Resolve an instance of the given seeder class.
Parameters
- $class string
public
setContainer ( Container $container ) : $this
Set the IoC container instance.
Parameters
- $container Container
public
setCommand ( Command $command ) : $this
Set the console command instance.
Parameters
- $command Command
public
__invoke ( array $parameters ) : mixed
Run the database seeds.
Parameters
- $parameters array