trait ConfirmableTrait (View source)

Methods

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

Confirm before proceeding with the action.

getDefaultConfirmCallback()

Get the default confirmation callback.

Details

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

Confirm before proceeding with the action.

This method only asks for confirmation in production.

Parameters

string $warning
Closure|bool|null $callback

Return Value

bool

protected Closure getDefaultConfirmCallback()

Get the default confirmation callback.

Return Value

Closure

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.