12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php namespace App\Providers;
- use Illuminate\Routing\Router;
- use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
- class RouteServiceProvider extends ServiceProvider {
- /**
- * All of the application's route middleware keys.
- *
- * @var array
- */
- protected $middleware = [
- 'auth' => 'App\Http\Middleware\Authenticated',
- 'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
- 'guest' => 'App\Http\Middleware\IsGuest',
- ];
- /**
- * Called before routes are registered.
- *
- * Register any model bindings or pattern based filters.
- *
- * @param \Illuminate\Routing\Router $router
- * @return void
- */
- public function before(Router $router)
- {
- //
- }
- /**
- * Define the routes for the application.
- *
- * @param \Illuminate\Routing\Router $router
- * @return void
- */
- public function map(Router $router)
- {
- $router->group(['namespace' => 'App\Http\Controllers'], function($router)
- {
- require app_path('Http/routes.php');
- });
- }
- }
|