BaseSeed implements SeedInterface
Seeder Class Base class for seeds.
Tags
Table of Contents
$ci | ContainerInterface | |
---|---|---|
__construct() | Constructor. | mixed |
validateMigrationDependencies() | Validate if a specific set of migrations have been ran. | bool |
run() | Function used to execute the seed. | mixed |
Properties
$ci
protected
ContainerInterface
$ci
Methods
__construct()
Constructor.
public
__construct(
$ci :
ContainerInterface
)
: mixed
Parameters
- $ci : ContainerInterface
Return values
mixedvalidateMigrationDependencies()
Validate if a specific set of migrations have been ran.
protected
validateMigrationDependencies(
$migrations :
string|array
)
: bool
Parameters
- $migrations : string|array
List of migraiton or specific migration required
Tags
Return values
bool —True on success
run()
Function used to execute the seed.
public
abstract run(
)
: mixed