CommandUtilTrait
trait CommandUtilTrait (View source)
Console commands utilities.
Methods
void
line(string $string, string|null $style = null, int|string|null $verbosity = null)
Write a string as standard output.
bool
runInProduction(string $warning = 'Application In Production!')
Warn user running command in production.
void
printLabels(string $title, array|string $body = null)
Print formatted labels.
void
updateSetting(string $name, string $key, string $value)
Write | replace setting in .env file.
Details
abstract void
line(string $string, string|null $style = null, int|string|null $verbosity = null)
Write a string as standard output.
protected bool
runInProduction(string $warning = 'Application In Production!')
Warn user running command in production.
protected void
printLabels(string $title, array|string $body = null)
Print formatted labels.
protected void
updateSetting(string $name, string $key, string $value)
Write | replace setting in .env file.