123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php namespace App\Http\Filters;
- use Illuminate\Http\Response;
- use Illuminate\Contracts\Foundation\Application;
- class MaintenanceFilter {
-
- protected $app;
-
- public function __construct(Application $app)
- {
- $this->app = $app;
- }
-
- public function filter()
- {
- if ($this->app->isDownForMaintenance())
- {
- return new Response('Be right back!', 503);
- }
- }
- }
|