Seeder
abstract class Seeder (View source)
Properties
protected Container | $container | The container instance. |
|
protected Command | $command | The console command instance. |
|
static protected array | $called | Seeders that have been called at least one time. |
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.
void
callOnce(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class once.
$this
$this
mixed
__invoke(array $parameters = [])
Run the database seeds.
Details
$this
call(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class.