MaintenanceFilter.php 263 B

1234567891011121314151617181920
  1. <?php namespace App\Http\Filters;
  2. use App, Response;
  3. class MaintenanceFilter {
  4. /**
  5. * Run the request filter.
  6. *
  7. * @return mixed
  8. */
  9. public function filter()
  10. {
  11. if (App::isDownForMaintenance())
  12. {
  13. return Response::make('Be right back!');
  14. }
  15. }
  16. }