Property | Type | Description | |
---|---|---|---|
$description | string | The console command description. | |
$files | Illuminate\Filesystem\Filesystem | The file system instance. | |
$signature | string | The name and signature of the console command. |
Method | Description | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $files ) | Create a new command instance. | |
handle ( ) : mixed | Execute the console command. |
Method | Description | |
---|---|---|
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 | ||
return | void |
protected getClassFromNamespace ( string $namespace ) : string | ||
$namespace | string | |
return | string |
protected getModelNamespace ( string $name ) : string | ||
$name | string | |
return | string |
protected makeDirectory ( string $path ) : void | ||
$path | string | |
return | void |
protected replaceNamespace ( string $stub ) : string | ||
$stub | string | |
return | string |
protected string $description | ||
return | string |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |
protected string $signature | ||
return | string |