From 472d31e5f2f6ce36e1b4146bfae0eb77f15ac0c0 Mon Sep 17 00:00:00 2001 From: Zeros Developer <33526722+ZerosDev@users.noreply.github.com> Date: Thu, 16 Dec 2021 22:06:59 +0700 Subject: [PATCH] Simplify the maintenance file call (#5752) * Simplify the maintenance file call * Update index.php Co-authored-by: Taylor Otwell --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 002ee24d2..1d69f3a28 100644 --- a/public/index.php +++ b/public/index.php @@ -16,8 +16,8 @@ define('LARAVEL_START', microtime(true)); | */ -if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) { - require __DIR__.'/../storage/framework/maintenance.php'; +if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { + require $maintenance; } /*