RouteServiceProvider.php 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. * All of the application's route middleware keys.
  7. *
  8. * @var array
  9. */
  10. protected $middleware = [
  11. 'auth' => 'App\Http\Middleware\Authenticated',
  12. 'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
  13. 'guest' => 'App\Http\Middleware\IsGuest',
  14. ];
  15. /**
  16. * Called before routes are registered.
  17. *
  18. * Register any model bindings or pattern based filters.
  19. *
  20. * @param \Illuminate\Routing\Router $router
  21. * @return void
  22. */
  23. public function before(Router $router)
  24. {
  25. //
  26. }
  27. /**
  28. * Define the routes for the application.
  29. *
  30. * @param \Illuminate\Routing\Router $router
  31. * @return void
  32. */
  33. public function map(Router $router)
  34. {
  35. $router->group(['namespace' => 'App\Http\Controllers'], function($router)
  36. {
  37. require app_path('Http/routes.php');
  38. });
  39. }
  40. }