trait ConfirmableTrait

Methods

bool
confirmToProceed(string $warning = 'Application In Production', bool|Closure|null $callback = null)

Confirm before proceeding with the action.

getDefaultConfirmCallback()

Get the default confirmation callback.

Details

at line 19
bool confirmToProceed(string $warning = 'Application In Production', bool|Closure|null $callback = null)

Confirm before proceeding with the action.

This method only asks for confirmation in production.

Parameters

string $warning
bool|Closure|null $callback

Return Value

bool

at line 47
protected Closure getDefaultConfirmCallback()

Get the default confirmation callback.

Return Value

Closure