FilterServiceProvider.php 694 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php namespace App\Providers;
  2. use Illuminate\Routing\FilterServiceProvider as ServiceProvider;
  3. class FilterServiceProvider extends ServiceProvider {
  4. /**
  5. * The filters that should run before all requests.
  6. *
  7. * @var array
  8. */
  9. protected $before = [
  10. 'App\Http\Filters\MaintenanceFilter',
  11. ];
  12. /**
  13. * The filters that should run after all requests.
  14. *
  15. * @var array
  16. */
  17. protected $after = [
  18. //
  19. ];
  20. /**
  21. * All available route filters.
  22. *
  23. * @var array
  24. */
  25. protected $filters = [
  26. 'auth' => 'App\Http\Filters\AuthFilter',
  27. 'auth.basic' => 'App\Http\Filters\BasicAuthFilter',
  28. 'csrf' => 'App\Http\Filters\CsrfFilter',
  29. 'guest' => 'App\Http\Filters\GuestFilter',
  30. ];
  31. }