Available Drivers
Array
The 'array'
maintenance mode driver uses an in-memory array to store the applications down state. This driver is ONLY useful for testing and SHOULD NOT be used within a production environment.
$mode = $this->getMaintenanceModeManager()->driver('array');
Driver path: \Aedart\Maintenance\Modes\Drivers\ArrayBasedMode
Json
The 'json'
maintenance mode driver is very similar to Laravel's default "file based" driver. It stores the application down state inside a file, formatted as json. Only difference is that this driver will fail, in case of json encoding or decoding errors.
$mode = $this->getMaintenanceModeManager()->driver('json');
Driver path: \Aedart\Maintenance\Modes\Drivers\JsonFileBasedMode