abstract class Seeder (View source)
protected Container | $container | The container instance. | |
protected Command | $command | The console command instance. |
$this | call(array|string $class, bool $silent = false) Seed the given connection from the given path. | |
void | callSilent(array|string $class) Silently 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. | |
mixed | __invoke() Run the database seeds. |
Seed the given connection from the given path.
Silently seed the given connection from the given path.
Resolve an instance of the given seeder class.
Set the IoC container instance.
Set the console command instance.
Run the database seeds.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Database/Seeder.html