class BootstrapCommand extends Command (View source)

Bootstrap integration.

Traits

Console commands utilities.

Properties

protected string $signature

The name and signature of the console command.

protected string $description

The console command description.

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.

__construct()

Create a new command instance.

void
handle()

Execute the console command.

void
setClientName()

Create/update client APP name.

void
setEnvironment()

Create/update target environment.

void
setCurrency()

Create/update currency.

void
setProviderCallbackHost()

Create/update currency.

void
setProductName()

Create/update target product subscribed too.

void
setProductSubscriptionKey()

Create/update product subscription key.

Details

abstract void line(string $string, string|null $style = null, int|string|null $verbosity = null)

Write a string as standard output.

Parameters

string $string
string|null $style
int|string|null $verbosity

Return Value

void

See also

InteractsWithIO::line

protected bool runInProduction(string $warning = 'Application In Production!')

Warn user running command in production.

Parameters

string $warning

Return Value

bool

protected void printLabels(string $title, array|string $body = null)

Print formatted labels.

Parameters

string $title
array|string $body

Return Value

void

protected void updateSetting(string $name, string $key, string $value)

Write | replace setting in .env file.

Parameters

string $name

ENV_VALUE, like; APP_NAME

string $key

Compose setting name, like app.name

string $value

Setting value

Return Value

void

__construct()

Create a new command instance.

void handle()

Execute the console command.

Return Value

void

protected void setClientName()

Create/update client APP name.

Return Value

void

protected void setEnvironment()

Create/update target environment.

Return Value

void

protected void setCurrency()

Create/update currency.

Return Value

void

protected void setProviderCallbackHost()

Create/update currency.

Return Value

void

protected void setProductName()

Create/update target product subscribed too.

Return Value

void

protected void setProductSubscriptionKey()

Create/update product subscription key.

Return Value

void