GeneratorCommand
class GeneratorCommand (View source)
Methods
__construct(string $base_dir, string $name)
MiddlewareCommand constructor
filenameIsValide($filename)
Check if filename is valide
bool
fileExists()
Check if controller exists
string
getPath()
Get file path
bool
exists()
Check if controller exists
bool
write(string $type, array $data = [])
Write file
bool|mixed|string
makeStub(string $type, array $data = [])
Stub render
setName(string $name)
Set writing filename
setBaseDirectory(string $base_dir)
Get the base directory
Details
__construct(string $base_dir, string $name)
MiddlewareCommand constructor
filenameIsValide($filename)
Check if filename is valide
bool
fileExists()
Check if controller exists
string
getPath()
Get file path
bool
exists()
Check if controller exists
bool
write(string $type, array $data = [])
Write file
bool|mixed|string
makeStub(string $type, array $data = [])
Stub render
setName(string $name)
Set writing filename
setBaseDirectory(string $base_dir)
Get the base directory