PHP code example of mahmud / maintenance-mode
1. Go to this page and download the library: Download mahmud/maintenance-mode library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mahmud / maintenance-mode example snippets
'providers' => [
\Mahmud\MaintenanceMode\MaintenanceModeServiceProvider::class,
]
[
'error' => 'Application is down for maintenance'
]
[
'view' => 'public.errors.custom_view'
]
bash
php artisan vendor:publish --tag=maintenance-mode --force
bash
APP_STATUS=down
UP_TIME='2017-05-19 23:30:15'