class ArrayMaintenanceMode implements MaintenanceMode (View source)

Properties

protected bool $active

Indicates if maintenance mode is currently active.

protected array $payload

The payload provided when maintenance mode was activated.

Methods

void
activate(array $payload)

Take the application down for maintenance.

void
deactivate()

Take the application out of maintenance.

bool
active()

Determine if the application is currently down for maintenance.

array
data()

Get the data array which was provided when the application was placed into maintenance.

Details

void activate(array $payload)

Take the application down for maintenance.

Parameters

array $payload

Return Value

void

void deactivate()

Take the application out of maintenance.

Return Value

void

bool active()

Determine if the application is currently down for maintenance.

Return Value

bool

array data()

Get the data array which was provided when the application was placed into maintenance.

Return Value

array