class Illuminate / Database / Seeder
abstract

Seeder

Properties

protected

$container Container

The container instance.

Default: null
protected

$command Command

The console command instance.

Default: null
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

public

setCommand ( Command $command ) : $this

Set the console command instance.

Parameters

public

__invoke ( array $parameters ) : mixed

Run the database seeds.

Parameters

  • $parameters array