Seeder
abstract class Seeder
Properties
| protected Container | $container | The container instance. |
|
| protected Command | $command | The console command instance. |
|
| static 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.
static void
flushState()
Flush all static state.
mixed
__invoke(array $parameters = [])
Run the database seeds.
Details
at line 38
Seeder
call(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class.
at line 76
Seeder
callWith(array|string $class, array $parameters = [])
Run the given seeder class.
at line 86
Seeder
callSilent(array|string $class, array $parameters = [])
Silently run the given seeder class.
at line 96
Seeder
callOnce(array|string $class, bool $silent = false, array $parameters = [])
Run the given seeder class once.
at line 114
protected Seeder
resolve(string $class)
Resolve an instance of the given seeder class.
at line 156
static void
flushState()
Flush all static state.
at line 166
mixed
__invoke(array $parameters = [])
Run the database seeds.