RouteServiceProvider.php 803 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * This namespace is applied to the controller routes in your routes file.
  7. *
  8. * In addition, it is set as the URL generator's root namespace.
  9. *
  10. * @var string
  11. */
  12. protected $namespace = 'App\Http\Controllers';
  13. /**
  14. * Define your route model bindings, pattern filters, etc.
  15. *
  16. * @param \Illuminate\Routing\Router $router
  17. * @return void
  18. */
  19. public function boot(Router $router)
  20. {
  21. parent::boot($router);
  22. //
  23. }
  24. /**
  25. * Define the routes for the application.
  26. *
  27. * @return void
  28. */
  29. public function map()
  30. {
  31. $this->loadRoutesFrom(app_path('Http/routes.php'));
  32. }
  33. }