Commit 74cd3eb8 authored by Taylor Otwell's avatar Taylor Otwell

Added proper code for new maintenance mode feature.

parent e72b1209
......@@ -96,6 +96,7 @@ return array(
'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider',
'Illuminate\Log\LogServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Foundation\Providers\MaintenanceServiceProvider',
'Illuminate\Database\MigrationServiceProvider',
'Illuminate\Foundation\Providers\OptimizeServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
......
......@@ -53,6 +53,22 @@ App::error(function(Exception $exception, $code)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment