MakeSingleton
class MakeSingleton extends ModuleMake (View source)
Traits
Properties
protected | $exitCode | from Command | |
protected string | $signature | The name and signature of the console command. |
|
protected string | $description | The console command description. |
|
protected Filesystem | $files | from ModuleMake | |
protected Composer | $composer | from ModuleMake | |
protected string[] | $modelTraits | from ModuleMake | |
protected string[] | $repositoryTraits | from ModuleMake | |
protected Repository | $config | from ModuleMake | |
protected bool | $blockable | from ModuleMake | |
protected bool | $translatable | from ModuleMake | |
protected bool | $sluggable | from ModuleMake | |
protected bool | $mediable | from ModuleMake | |
protected bool | $fileable | from ModuleMake | |
protected bool | $sortable | from ModuleMake | |
protected bool | $revisionable | from ModuleMake | |
protected bool | $nestable | from ModuleMake | |
protected bool | $defaultsAnswserToNo | from ModuleMake | |
protected bool | $isCapsule | from ModuleMake | |
protected bool | $isSingleton | ||
protected string | $moduleBasePath | from ModuleMake | |
protected Capsule | $capsule | from ModuleMake | |
protected bool | $customDirs | If true we save to flat directories. |
from ModuleMake |
Methods
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
from
ModuleMake
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
viewPath($moduleName)
No description