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. 'guest' => 'App\Http\Middleware\IsGuest',
  24. ];
  25. /**
  26. * Called before routes are registered.
  27. *
  28. * Register any model bindings or pattern based filters.
  29. *
  30. * @param \Illuminate\Routing\Router $router
  31. * @return void
  32. */
  33. public function before(Router $router)
  34. {
  35. //
  36. }
  37. /**
  38. * Define the routes for the application.
  39. *
  40. * @param \Illuminate\Routing\Router $router
  41. * @return void
  42. */
  43. public function map(Router $router)
  44. {
  45. // require app_path('Http/routes.php');
  46. }
  47. }