Свойство | Тип | Описание | |
---|---|---|---|
$description | string | The console command description. | |
$files | Illuminate\Filesystem\Filesystem | The file system instance. | |
$signature | string | The name and signature of the console command. |
Метод | Описание | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $files ) | Create a new command instance. | |
handle ( ) : mixed | Execute the console command. |
Метод | Описание | |
---|---|---|
generateTransformer ( ) : void | Generate the transformer class. | |
getClassFromNamespace ( string $namespace ) : string | Get the full class path for the transformer. | |
getModelNamespace ( string $name ) : string | Get the full class path for the model. | |
makeDirectory ( string $path ) : void | Build a transformers directory if one doesn't exist. | |
makeTransformer ( string $name, string $stub ) : string | Build the transformer class using the given name and stub. | |
replaceClass ( string $stub, string $name ) : string | Replace the class name for the given stub. | |
replaceModel ( string $stub, string $name ) : string | Replace the model for the given stub. | |
replaceNamespace ( string $stub ) : string | Replace the namespace for the given stub. |
public __construct ( Illuminate\Filesystem\Filesystem $files ) | ||
$files | Illuminate\Filesystem\Filesystem |
protected generateTransformer ( ) : void | ||
Результат | void |
protected getClassFromNamespace ( string $namespace ) : string | ||
$namespace | string | |
Результат | string |
protected getModelNamespace ( string $name ) : string | ||
$name | string | |
Результат | string |
protected makeDirectory ( string $path ) : void | ||
$path | string | |
Результат | void |
protected replaceNamespace ( string $stub ) : string | ||
$stub | string | |
Результат | string |
protected string $description | ||
Результат | string |
protected Filesystem,Illuminate\Filesystem $files | ||
Результат | Illuminate\Filesystem\Filesystem |
protected string $signature | ||
Результат | string |