Skip to content

Commit

Permalink
Simplify the maintenance file call (#5752)
Browse files Browse the repository at this point in the history
* Simplify the maintenance file call

* Update index.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
zerosdev and taylorotwell committed Dec 16, 2021
1 parent e999e1d commit 472d31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
|
*/

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;
}

/*
Expand Down

0 comments on commit 472d31e

Please sign in to comment.