PHP Class Encore\Admin\Commands\MakeCommand

Inheritance: extends Illuminate\Console\GeneratorCommand
Show file Open project: z-song/laravel-admin

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
handle ( ) : void Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getDefaultNamespace ( string $rootNamespace ) : string Get the default namespace for the class.
getOptions ( ) : array Get the console command options.
getStub ( ) : string Get the stub file for the generator.
modelExists ( ) : boolean Determine if the model is exists.
replaceClass ( string $stub, string $name ) : string Replace the class name for the given stub.

Method Details

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getDefaultNamespace() protected method

Get the default namespace for the class.
protected getDefaultNamespace ( string $rootNamespace ) : string
$rootNamespace string
return string

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

getStub() protected method

Get the stub file for the generator.
protected getStub ( ) : string
return string

handle() public method

Execute the console command.
public handle ( ) : void
return void

modelExists() protected method

Determine if the model is exists.
protected modelExists ( ) : boolean
return boolean

replaceClass() protected method

Replace the class name for the given stub.
protected replaceClass ( string $stub, string $name ) : string
$stub string
$name string
return string

Property Details

$description protected property

The console command description.
protected string $description
return string

$name protected property

The console command name.
protected string $name
return string