class MakeMorphToManyCommand extends MakeRelationManagerCommand (View source)

Traits

Properties

protected $description from  MakeRelationManagerCommand
protected $signature

Methods

string
indentString(string $string, int $level = 1)

No description

bool
checkForCollision(array $paths)

No description

void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])

No description

bool
fileExists(string $path)

No description

void
writeFile(string $path, string $contents)

No description

string
getDefaultStubPath()

No description

string
askRequired(string $question, string $field, string|null $default = null)

No description

string
validateInput(Closure $callback, string $field, array $rules, Closure|null $onError = null)

No description

int
handle()

No description

option($key = null)

No description

Details

protected string indentString(string $string, int $level = 1)

No description

Parameters

string $string
int $level

Return Value

string

protected bool checkForCollision(array $paths)

No description

Parameters

array $paths

Return Value

bool

protected void copyStubToApp(string $stub, string $targetPath, array $replacements = [])

No description

Parameters

string $stub
string $targetPath
array $replacements

Return Value

void

protected bool fileExists(string $path)

No description

Parameters

string $path

Return Value

bool

protected void writeFile(string $path, string $contents)

No description

Parameters

string $path
string $contents

Return Value

void

protected string getDefaultStubPath()

No description

Return Value

string

protected string askRequired(string $question, string $field, string|null $default = null)

No description

Parameters

string $question
string $field
string|null $default

Return Value

string

protected string validateInput(Closure $callback, string $field, array $rules, Closure|null $onError = null)

No description

Parameters

Closure $callback
string $field
array $rules
Closure|null $onError

Return Value

string

int handle()

No description

Return Value

int

option($key = null)

No description

Parameters

$key