Method |
Description |
|
__construct ( Illuminate\Filesystem\Filesystem $filesystem = null ) |
|
|
cleanSection ( ) : boolean |
Cleans the iSeed section |
|
generateClassName ( string $table ) : string |
Generates a seed class name (also used as a filename) |
|
generateSeed ( string $table, string $database = null, integer $max, string $prerunEvent = null, $postrunEvent = null ) : boolean |
Generates a seed file. |
|
getData ( string $table, $max ) : Array |
Get the Data |
|
getPath ( string $name, string $path ) : string |
Create the full path name to the seed file. |
|
getSeedPath ( ) : string |
Get a seed folder path |
|
getStubPath ( ) : string |
Get the path to the stub file. |
|
hasTable ( string $table ) : boolean |
Checks if a database table exists |
|
populateStub ( string $class, string $stub, string $table, string $data, integer $chunkSize = null, string $prerunEvent = null, $postrunEvent = null ) : string |
Populate the place-holders in the seed stub. |
|
repackSeedData ( array | object $data ) : array |
Repacks data read from the database |
|
updateDatabaseSeederRunMethod ( string $className ) : boolean |
Updates the DatabaseSeeder file's run method (kudoz to: https://github.com/JeffreyWay/Laravel-4-Generators) |
|