RouteServiceProvider.php 974 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 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. * @return void
  37. */
  38. public function map(Router $router)
  39. {
  40. // require app_path('Http/routes.php');
  41. }
  42. }