RouteServiceProvider.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php namespace App\Providers;
  2. use Illuminate\Routing\Router;
  3. use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
  4. class RouteServiceProvider extends ServiceProvider {
  5. /**
  6. * The controllers to scan for route annotations.
  7. *
  8. * @var array
  9. */
  10. protected $scan = [
  11. 'App\Http\Controllers\HomeController',
  12. 'App\Http\Controllers\Auth\AuthController',
  13. 'App\Http\Controllers\Auth\PasswordController',
  14. ];
  15. /**
  16. * All of the application's route middleware keys.
  17. *
  18. * @var array
  19. */
  20. protected $middleware = [
  21. 'auth' => 'App\Http\Middleware\Authenticated',
  22. 'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
  23. 'csrf' => 'App\Http\Middleware\CsrfTokenIsValid',
  24. 'guest' => 'App\Http\Middleware\IsGuest',
  25. ];
  26. /**
  27. * Called before routes are registered.
  28. *
  29. * Register any model bindings or pattern based filters.
  30. *
  31. * @param Router $router
  32. * @return void
  33. */
  34. public function before(Router $router)
  35. {
  36. //
  37. }
  38. /**
  39. * Define the routes for the application.
  40. *
  41. * @return void
  42. */
  43. public function map(Router $router)
  44. {
  45. // require app_path('Http/routes.php');
  46. }
  47. }