mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
update for maintenance mode
This commit is contained in:
parent
395ede7a2d
commit
47e2781f68
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user