Seeder

class Seeder (View source)

Properties

protected Container $container The container instance.
protected Command $command The console command instance.

Methods

void run()

Run the database seeds.

void call(string $class)

Seed the given connection from the given path.

Seeder resolve(string $class)

Resolve an instance of the given seeder class.

$this setContainer(Container $container)

Set the IoC container instance.

$this setCommand(Command $command)

Set the console command instance.

Details

abstract void run()

Run the database seeds.

Return Value

void

void call(string $class)

Seed the given connection from the given path.

Parameters

string $class

Return Value

void

protected Seeder resolve(string $class)

Resolve an instance of the given seeder class.

Parameters

string $class

Return Value

Seeder

$this setContainer(Container $container)

Set the IoC container instance.

Parameters

Container $container

Return Value

$this

$this setCommand(Command $command)

Set the console command instance.

Parameters

Command $command

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Database/Seeder.html