CommandUtilTrait
trait CommandUtilTrait (View source)
Console commands utilities.
Methods
bool
runInProduction(string $warning = 'Application In Production!')
Warn user running command in production.
void
printLabels(string $title, array|string $body = null)
Print formatted labels.
string
void
updateSetting(string $name, string $key, string $value)
Write | replace setting in .env file.
Details
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 string
getRegex(string $name, string $key)
deprecated
deprecated
Determine replacement regex pattern a setting.
protected void
updateSetting(string $name, string $key, string $value)
Write | replace setting in .env file.