MakeWidgetCommand
class MakeWidgetCommand extends Command (View source)
Traits
Properties
protected | $description | ||
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
int
handle()
No description
Details
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