From 47e2781f683471aedeca4c98dbcdd410f20c6c7c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Jul 2020 14:30:22 -0500 Subject: [PATCH] update for maintenance mode --- public/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/index.php b/public/index.php index fc698981..a03551a0 100644 --- a/public/index.php +++ b/public/index.php @@ -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'; }