update for maintenance mode

This commit is contained in:
Taylor Otwell 2020-07-16 14:30:22 -05:00
parent 395ede7a2d
commit 47e2781f68
1 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,17 @@ use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is maintenance / demo mode via the "down" command we
| will require this file so that any prerendered template can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists(__DIR__.'/../bootstrap/maintenance.php')) {
require __DIR__.'/../bootstrap/maintenance.php';
}