RouteServiceProvider.php 772 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php namespace App\Providers;
  2. use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
  3. class RouteServiceProvider extends ServiceProvider {
  4. /**
  5. * Called before routes are registered.
  6. *
  7. * Register any model bindings or pattern based filters.
  8. *
  9. * @return void
  10. */
  11. public function before()
  12. {
  13. //
  14. }
  15. /**
  16. * Define the routes for the application.
  17. *
  18. * @return void
  19. */
  20. public function map()
  21. {
  22. $this->app->booted(function()
  23. {
  24. // Once the application has booted, we will include the default routes
  25. // file. This "namespace" helper will load the routes file within a
  26. // route group which automatically sets the controller namespace.
  27. $this->namespaced(function()
  28. {
  29. require app_path().'/Http/routes.php';
  30. });
  31. });
  32. }
  33. }