Seeder
abstract class Seeder (View source)
Properties
protected Container | $container | The container instance. | |
protected Command | $command | The console command instance. |
Methods
$this | call(array|string $class, bool $silent = false, array $parameters = []) Run the given seeder class. | |
void | callWith(array|string $class, array $parameters = []) Run the given seeder class. | |
void | callSilent(array|string $class, array $parameters = []) Silently run the given seeder class. | |
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(array $parameters = []) Run the database seeds. |
Details
$this call(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class.
void callWith(array|string $class, array $parameters = [])
Run the given seeder class.
void callSilent(array|string $class, array $parameters = [])
Silently run the given seeder class.
protected 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(array $parameters = [])
Run the database seeds.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Seeder.html