Свойство | Тип | Описание | |
---|---|---|---|
$description | string | The console command description. | |
$signature | string | The name and signature of the console command. |
Метод | Описание | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\Support\Composer $composer ) | Create a new command instance. | |
addModelAttributes ( $name, $attributes, $stub ) | ||
buildFakerAttributes ( $attributes ) | ||
buildMigrationFilename ( $model ) | ||
buildTableColumns ( $attributes ) | ||
convertArrayToString ( $array ) : string | Convert a PHP array into a string version. | |
convertModelToTableName ( $model ) | ||
handle ( ) : mixed | Execute the console command. | |
parseAttributesFromInputString ( string $text ) : array | Convert a pipe-separated list of attributes to an array. |
Метод | Описание | |
---|---|---|
buildMigration ( $name ) | ||
buildModel ( $name ) |
Метод | Описание | |
---|---|---|
addMigrationAttributes ( $text, $stub ) | ||
appendRoutes ( $modelName ) | ||
buildSchemaColumn ( string $fieldType, string $name, integer $length, array $traits = [] ) : string | Create a Schema Builder column. | |
createController ( $modelName ) | ||
createMigration ( $name ) | ||
createModel ( string $name ) : boolean | Create and store a new Model to the filesystem. | |
createModelFactory ( $name ) | ||
extractAttributePropertiesToApply ( $properties ) : array | Get the column properties that should be applied to the column. | |
extractFieldLengthValue ( array $properties ) : integer | Extract a numeric length value from all properties specified for the attribute. | |
getFieldTypeFromProperties ( array $properties ) : string | Get the column field type based from the properties of the field being created. | |
modelName ( string $name ) : string | Build a Model name from a word. | |
replaceClassName ( $name, $stub ) | ||
typeCanDefineSize ( string $type ) : boolean | Can the data type have it's size controlled within the migration? |
public __construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\Support\Composer $composer ) | ||
$files | Illuminate\Filesystem\Filesystem | |
$composer | Illuminate\Support\Composer |
public convertArrayToString ( $array ) : string | ||
$array | ||
Результат | string |
public parseAttributesFromInputString ( string $text ) : array | ||
$text | string | The Pipe separated attributes |
Результат | array |
protected string $description | ||
Результат | string |
protected string $signature | ||
Результат | string |