class Illuminate / Database / Seeder
You are viewing an older version of the documentation. For the latest, please visit master documentation.
abstract

Seeder

Properties

protected

$container Container

The container instance.

Default: null
protected

$command Command

The console command instance.

Default: null

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
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