MakeMorphToManyCommand
class MakeMorphToManyCommand extends MakeRelationManagerCommand (View source)
Traits
Properties
protected | $description | from MakeRelationManagerCommand | |
protected | $signature |
Methods
void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])
No description
from
CanManipulateFiles
string
askRequired(string $question, string $field, string|null $default = null)
No description
from
CanValidateInput
string
validateInput(Closure $callback, string $field, array $rules, Closure|null $onError = null)
No description
from
CanValidateInput
option($key = null)
No description
Details
protected string
indentString(string $string, int $level = 1)
No description
protected bool
checkForCollision(array $paths)
No description
protected void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])
No description
protected bool
fileExists(string $path)
No description
protected void
writeFile(string $path, string $contents)
No description
protected string
getDefaultStubPath()
No description
protected string
askRequired(string $question, string $field, string|null $default = null)
No description
protected string
validateInput(Closure $callback, string $field, array $rules, Closure|null $onError = null)
No description
int
handle()
No description
option($key = null)
No description