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