trait ConfirmableTrait (View source)

Methods

TReturn is false ? true : bool)
confirmToProceed(string $warning = 'Application In Production', TReturn|TReturn|null $callback = null)

Confirm before proceeding with the action.

Closure(): bool
getDefaultConfirmCallback()

Get the default confirmation callback.

Details

TReturn is false ? true : bool) confirmToProceed(string $warning = 'Application In Production', TReturn|TReturn|null $callback = null)

Confirm before proceeding with the action.

This method only asks for confirmation in production.

Parameters

string $warning
TReturn|TReturn|null $callback

Return Value

TReturn is false ? true : bool)

protected Closure(): bool getDefaultConfirmCallback()

Get the default confirmation callback.

Return Value

Closure(): bool

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.