class Illuminate / Foundation / CacheBasedMaintenanceMode

CacheBasedMaintenanceMode

Implements

Properties

protected

$cache Factory

The cache factory.

Default: null
protected

$store string

The cache store that should be utilized.

Default: null
protected

$key string

The cache key to use when storing maintenance mode information.

Default: null

Methods

public

__construct ( Factory $cache , string $store , string $key ) : void

Create a new cache based maintenance mode implementation.

Parameters

  • $cache Factory
  • $store string
  • $key string
public

activate ( array $payload ) : void

Take the application down for maintenance.

Parameters

  • $payload array
public

deactivate ( ) : void

Take the application out of maintenance.

public

active ( ) : bool

Determine if the application is currently down for maintenance.

public

data ( ) : array

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

protected

getStore ( ) : Repository

Get the cache store to use.