PHP Класс DrawMyAttention\ResourceGenerator\Commands\ResourceMakeCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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?

Описание методов

__construct() публичный Метод

Create a new command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\Support\Composer $composer )
$files Illuminate\Filesystem\Filesystem
$composer Illuminate\Support\Composer

addModelAttributes() публичный Метод

public addModelAttributes ( $name, $attributes, $stub )

buildFakerAttributes() публичный Метод

public buildFakerAttributes ( $attributes )

buildMigration() защищенный Метод

protected buildMigration ( $name )

buildMigrationFilename() публичный Метод

public buildMigrationFilename ( $model )

buildModel() защищенный Метод

protected buildModel ( $name )

buildTableColumns() публичный Метод

public buildTableColumns ( $attributes )

convertArrayToString() публичный Метод

Convert a PHP array into a string version.
public convertArrayToString ( $array ) : string
$array
Результат string

convertModelToTableName() публичный Метод

public convertModelToTableName ( $model )

handle() публичный Метод

Execute the console command.
public handle ( ) : mixed
Результат mixed

parseAttributesFromInputString() публичный Метод

Convert a pipe-separated list of attributes to an array.
public parseAttributesFromInputString ( string $text ) : array
$text string The Pipe separated attributes
Результат array

Описание свойств

$description защищенное свойство

The console command description.
protected string $description
Результат string

$signature защищенное свойство

The name and signature of the console command.
protected string $signature
Результат string