From 74cd3eb83819f8f1c7d9dcc93df42d946aa4e1cf Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 2 May 2013 15:31:21 -0500 Subject: [PATCH] Added proper code for new maintenance mode feature. --- app/config/app.php | 1 + app/start/global.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/app/config/app.php b/app/config/app.php index 6b065a9c..44b9f72e 100644 --- a/app/config/app.php +++ b/app/config/app.php @@ -96,6 +96,7 @@ 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', + 'Illuminate\Foundation\Providers\MaintenanceServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Foundation\Providers\OptimizeServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', diff --git a/app/start/global.php b/app/start/global.php index f85b9bae..c19d1d63 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -53,6 +53,22 @@ Log::error($exception); }); +/* +|-------------------------------------------------------------------------- +| Maintenance Mode Handler +|-------------------------------------------------------------------------- +| +| The "down" Artisan command gives you the ability to put an application +| into maintenance mode. Here, you will define what is displayed back +| to the user if maintenace mode is in effect for this application. +| +*/ + +App::down(function() +{ + return "We'll be right back!"; +}); + /* |-------------------------------------------------------------------------- | Require The Filters File