Seeder
abstract class Seeder implements Transient
Properties
| protected Container | $container | The container instance. |
|
| protected Command | $command | The console command instance. |
|
| protected array<int, class-string> | $called | Seeders that have been called at least one time. |
Methods
call(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class.
callSilent(array|string $class, array $parameters = [])
Silently run the given seeder class.
callOnce(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class once.
mixed
__invoke(array $parameters = [])
Run the database seeds.
Details
at line 45
Seeder
call(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class.
at line 92
Seeder
callWith(array|string $class, array $parameters = [])
Run the given seeder class.
at line 102
Seeder
callSilent(array|string $class, array $parameters = [])
Silently run the given seeder class.
at line 112
Seeder
callOnce(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class once.
at line 132
protected Seeder
resolve(string $class)
Resolve an instance of the given seeder class.
at line 178
mixed
__invoke(array $parameters = [])
Run the database seeds.