RouteServiceProvider.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 root namespace to assume when generating URLs to actions.
  7. *
  8. * @var string
  9. */
  10. protected $rootUrlNamespace = 'App\Http\Controllers';
  11. /**
  12. * The controllers to scan for route annotations.
  13. *
  14. * @var array
  15. */
  16. protected $scan = [
  17. 'App\Http\Controllers\HomeController',
  18. 'App\Http\Controllers\Auth\AuthController',
  19. 'App\Http\Controllers\Auth\PasswordController',
  20. ];
  21. /**
  22. * Called before routes are registered.
  23. *
  24. * Register any model bindings or pattern based filters.
  25. *
  26. * @param \Illuminate\Routing\Router $router
  27. * @return void
  28. */
  29. public function before(Router $router)
  30. {
  31. //
  32. }
  33. /**
  34. * Define the routes for the application.
  35. *
  36. * @param \Illuminate\Routing\Router $router
  37. * @return void
  38. */
  39. public function map(Router $router)
  40. {
  41. // require app_path('Http/routes.php');
  42. }
  43. }