MakeModelCommand
class MakeModelCommand extends GeneratorCommand
Make Model
Properties
protected string | $signature | The name and signature of the console command. |
|
protected string | $description | The console command description. |
|
protected string | $type | String to store the command type. |
Methods
string
parseName(string $name)
Parse the name and format according to the root namespace.
from
GeneratorCommand
string
qualifyClass(string $name)
Parse the class name and format according to the root namespace.
from
GeneratorCommand
replaceNamespace(string $stub, string $name)
Replace the namespace for the given stub.
from
GeneratorCommand
void
handle()
Execute the console command.
string
getStub()
Get the stub file for the generator.
string
getDefaultNamespace(string $rootNamespace)
Get the default namespace for the class.
Details
in
GeneratorCommand at line 21
protected string
parseName(string $name)
Parse the name and format according to the root namespace.
in
GeneratorCommand at line 40
protected string
qualifyClass(string $name)
Parse the class name and format according to the root namespace.
in
GeneratorCommand at line 52
protected string
getPath($name)
No description
in
GeneratorCommand at line 110
protected GeneratorCommand
replaceNamespace(string $stub, string $name)
Replace the namespace for the given stub.
at line 43
void
handle()
Execute the console command.
at line 62
protected string
getStub()
Get the stub file for the generator.
at line 72
protected string
getDefaultNamespace(string $rootNamespace)
Get the default namespace for the class.