Property | Type | Description | |
---|---|---|---|
$batch | integer | ||
$compiler | Way\Generators\Compilers\TemplateCompiler | ||
$config | Illuminate\Config\Repository | ||
$connection | string | null | ||
$datePrefix | string | Filename date prefix (Y_m_d_His) | |
$description | string | The console command description. | |
$fields | array | Array of Fields to create in a new Migration Namely: Columns, Indexes and Foreign Keys | |
$file | Way\Generators\Filesystem\Filesystem | ||
$log | boolean | ||
$method | string | ||
$migrationName | string | ||
$migrations | array | List of Migrations that has been done | |
$name | string | The console command name. | |
$repository | Illuminate\Database\Migrations\MigrationRepositoryInterface | ||
$schemaGenerator | |||
$table | string |
Method | Description | |
---|---|---|
__construct ( Way\Generators\Generator $generator, Way\Generators\Filesystem\Filesystem $file, Way\Generators\Compilers\TemplateCompiler $compiler, Illuminate\Database\Migrations\MigrationRepositoryInterface $repository, Illuminate\Config\Repository $config ) | ||
fire ( ) : void | Execute the console command. |
Method | Description | |
---|---|---|
askNumeric ( string $question, integer | float $default = null ) : integer | float | Ask user for a Numeric Value, or blank for default | |
askYn ( string $question ) : boolean | Ask for user input: Yes/No | |
generate ( string $method, array $tables ) : void | Generate Migrations | |
getArguments ( ) : array | Get the console command arguments. | |
getDatePrefix ( ) : string | Get the date prefix for the migration. | |
getExcludedTables ( ) : array | Get a list of tables to exclude | |
getFileGenerationPath ( ) : string | The path where the file will be created | |
getOptions ( ) : array | Get the console command options. | |
getTemplateData ( ) : array | Fetch the template data | |
getTemplatePath ( ) : string | Get path to template for generator | |
removeExcludedTables ( $tables ) : array | Remove all the tables to exclude from the array of tables |
public __construct ( Way\Generators\Generator $generator, Way\Generators\Filesystem\Filesystem $file, Way\Generators\Compilers\TemplateCompiler $compiler, Illuminate\Database\Migrations\MigrationRepositoryInterface $repository, Illuminate\Config\Repository $config ) | ||
$generator | Way\Generators\Generator | |
$file | Way\Generators\Filesystem\Filesystem | |
$compiler | Way\Generators\Compilers\TemplateCompiler | |
$repository | Illuminate\Database\Migrations\MigrationRepositoryInterface | |
$config | Illuminate\Config\Repository |
protected getArguments ( ) : array | ||
return | array |
protected getDatePrefix ( ) : string | ||
return | string |
protected getExcludedTables ( ) : array | ||
return | array |
protected getFileGenerationPath ( ) : string | ||
return | string |
protected getOptions ( ) : array | ||
return | array |
protected getTemplateData ( ) : array | ||
return | array |
protected getTemplatePath ( ) : string | ||
return | string |
protected removeExcludedTables ( $tables ) : array | ||
$tables | ||
return | array |
protected TemplateCompiler,Way\Generators\Compilers $compiler | ||
return | Way\Generators\Compilers\TemplateCompiler |
protected Repository,Illuminate\Config $config | ||
return | Illuminate\Config\Repository |
protected string $datePrefix | ||
return | string |
protected string $description | ||
return | string |
protected array $fields | ||
return | array |
protected Filesystem,Way\Generators\Filesystem $file | ||
return | Way\Generators\Filesystem\Filesystem |
protected array $migrations | ||
return | array |
protected MigrationRepositoryInterface,Illuminate\Database\Migrations $repository | ||
return | Illuminate\Database\Migrations\MigrationRepositoryInterface |
protected SchemaGenerator,Xethron\MigrationsGenerator\Generators $schemaGenerator | ||
return |