ModuleMake
class ModuleMake extends Command (View source)
Traits
Properties
protected | $exitCode | from Command | |
string | $capsuleNamespace | ||
protected string | $signature | The name and signature of the console command. |
|
protected string | $description | The console command description. |
|
protected Filesystem | $files | ||
protected Composer | $composer | ||
protected string[] | $modelTraits | ||
protected string[] | $repositoryTraits | ||
protected Repository | $config | ||
protected bool | $blockable | ||
protected bool | $translatable | ||
protected bool | $sluggable | ||
protected bool | $mediable | ||
protected bool | $fileable | ||
protected bool | $sortable | ||
protected bool | $revisionable | ||
protected bool | $nestable | ||
protected bool | $factory | ||
protected bool | $seeder | ||
protected bool | $defaultsAnswserToNo | ||
protected bool | $isCapsule | ||
protected bool | $isSingleton | ||
protected string | $moduleBasePath | ||
protected Capsule | $capsule | ||
protected bool | $customDirs | If true we save to flat directories. |
Methods
handle()
Executes the console command.
string
replaceVariables(array $variables, string $stub, array|null $delimiters = null)
No description
from
HandlesStubs
string
replaceConditionals($conditionals, string $stub, array|null $delimiters = null)
No description
from
HandlesStubs
__construct(Filesystem $files, Composer $composer, Repository $config)
No description
checkCapsuleDirectory($dir)
No description
void
createCapsuleRoutes()
Creates a basic routes file for the Capsule.
createCapsulePath($moduleName, $modelName)
No description
createCapsuleNamespace($module, $model)
No description
databasePath($path = '')
No description
makeDir($dir)
No description
makeTwillDirectory($path)
No description
void
putTwillStub(string $path, string $stub)
No description
namespace($type, $suffix, $class = null)
No description
string
viewPath(string $moduleName)
No description
string
previewViewPath()
No description
Details
__call($method, $parameters)
No description
handle()
Executes the console command.
string
replaceVariables(array $variables, string $stub, array|null $delimiters = null)
No description
string
replaceConditionals($conditionals, string $stub, array|null $delimiters = null)
No description
string
removeEmptyLinesWithOnlySpaces(string $stub)
No description
__construct(Filesystem $files, Composer $composer, Repository $config)
No description
protected
checkCapsuleDirectory($dir)
No description
void
createCapsuleRoutes()
Creates a basic routes file for the Capsule.
createCapsulePath($moduleName, $modelName)
No description
createCapsuleNamespace($module, $model)
No description
databasePath($path = '')
No description
makeDir($dir)
No description
makeTwillDirectory($path)
No description
void
putTwillStub(string $path, string $stub)
No description
namespace($type, $suffix, $class = null)
No description
string
viewPath(string $moduleName)
No description
string
previewViewPath()
No description