class MakeCapsule 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
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
protected null $capsulesDirectory
protected null $namespace

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