class ModuleMake extends Command (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
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 $defaultsAnswserToNo
protected bool $isCapsule
protected bool $isSingleton
protected string $moduleBasePath
protected Capsule $capsule
protected bool $customDirs

If true we save to flat directories.

Methods

__call($method, $parameters)

No description

from  Command
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

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

Details

__call($method, $parameters)

No description

Parameters

$method
$parameters

handle()

Executes the console command.

string replaceVariables(array $variables, string $stub, array|null $delimiters = null)

No description

Parameters

array $variables
string $stub
array|null $delimiters

Return Value

string

string replaceConditionals($conditionals, string $stub, array|null $delimiters = null)

No description

Parameters

$conditionals
string $stub
array|null $delimiters

Return Value

string

string removeEmptyLinesWithOnlySpaces(string $stub)

No description

Parameters

string $stub

Return Value

string

__construct(Filesystem $files, Composer $composer, Repository $config)

No description

Parameters

Filesystem $files
Composer $composer
Repository $config

protected checkCapsuleDirectory($dir)

No description

Parameters

$dir

void createCapsuleRoutes()

Creates a basic routes file for the Capsule.

Return Value

void

Exceptions

FileNotFoundException

createCapsulePath($moduleName, $modelName)

No description

Parameters

$moduleName
$modelName

createCapsuleNamespace($module, $model)

No description

Parameters

$module
$model

databasePath($path = '')

No description

Parameters

$path

makeDir($dir)

No description

Parameters

$dir

makeTwillDirectory($path)

No description

Parameters

$path

void putTwillStub(string $path, string $stub)

No description

Parameters

string $path
string $stub

Return Value

void

namespace($type, $suffix, $class = null)

No description

Parameters

$type
$suffix
$class

viewPath($moduleName)

No description

Parameters

$moduleName