RouteServiceProvider.php 558 B

1234567891011121314151617181920212223242526272829303132333435
  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. $this->namespaced(function()
  25. {
  26. require app('path').'/Http/routes.php';
  27. });
  28. });
  29. }
  30. }