48 lines
1.0 KiB
PHP
48 lines
1.0 KiB
PHP
<?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',
|
|
'csrf' => 'App\Http\Middleware\CsrfTokenIsValid',
|
|
'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');
|
|
});
|
|
}
|
|
|
|
}
|