From 34327891ab171157a64ca0a6af2cc07650f1f047 Mon Sep 17 00:00:00 2001 From: ZerosDev Date: Thu, 16 Dec 2021 22:01:17 +0700 Subject: [PATCH 1/2] Simplify the maintenance file call --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 002ee24d2a1..79883a02ddb 100644 --- a/public/index.php +++ b/public/index.php @@ -16,8 +16,8 @@ | */ -if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) { - require __DIR__.'/../storage/framework/maintenance.php'; +if (file_exists($maintenanceFile = __DIR__.'/../storage/framework/maintenance.php')) { + require $maintenanceFile; } /* From 306d4b9ed5040a1c859892cb56f955c5d3c8e8a2 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Dec 2021 09:06:20 -0600 Subject: [PATCH 2/2] Update index.php --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 79883a02ddb..1d69f3a2890 100644 --- a/public/index.php +++ b/public/index.php @@ -16,8 +16,8 @@ | */ -if (file_exists($maintenanceFile = __DIR__.'/../storage/framework/maintenance.php')) { - require $maintenanceFile; +if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { + require $maintenance; } /*