Seeder (Database)
Seeder
class Seeder (View source)
Methods
void | call(string $class) Seed the given connection from the given path. | |
void | callSilent(string $class) Silently seed the given connection from the given path. | |
$this | setContainer(Container $container) Set the IoC container instance. | |
$this | setCommand(Command $command) Set the console command instance. | |
void | __invoke() Run the database seeds. |
Details
void call(string $class)
Seed the given connection from the given path.
void callSilent(string $class)
Silently seed the given connection from the given path.
$this setContainer(Container $container)
Set the IoC container instance.
$this setCommand(Command $command)
Set the console command instance.
void __invoke()
Run the database seeds.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Database/Seeder.html