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 44
Seeder
call(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class.
at line 91
Seeder
callWith(array|string $class, array $parameters = [])
Run the given seeder class.
at line 101
Seeder
callSilent(array|string $class, array $parameters = [])
Silently run the given seeder class.
at line 111
Seeder
callOnce(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class once.
at line 131
protected Seeder
resolve(string $class)
Resolve an instance of the given seeder class.
at line 173
mixed
__invoke(array $parameters = [])
Run the database seeds.