src/Providers/RouteServiceProvider.php
protected function buildRoutesForAuth(Router $router)
    {
        $auth = $this->core->auth();

        $router->group(
            [
                'prefix' => 'auth',
            ],
            function (Router $router) use ($auth) {

                $router->get('login',  $auth->getRouteLoginAction());
                $router->post('login', $auth->getRouteLoginPostAction());
                $router->get('logout', $auth->getRouteLogoutAction());

                $router->get('password/email',          $auth->getRoutePasswordEmailGetAction());
                $router->post('password/email',         $auth->getRoutePasswordEmailPostAction());
                $router->get('password/reset/{token?}', $auth->getRoutePasswordResetGetAction());
                $router->post('password/reset',         $auth->getRoutePasswordResetPostAction());
            }
        );
    }
protected function buildRoutesForAuth(Router $router)
    {
        $auth = $this->core->auth();

        $router->group(
            [
                'prefix' => 'auth',
            ],
            function (Router $router) use ($auth) {

                $router->get('login',  $auth->getRouteLoginAction());
                $router->post('login', $auth->getRouteLoginPostAction());
                $router->get('logout', $auth->getRouteLogoutAction());

                $router->get('password/email',          $auth->getRoutePasswordEmailGetAction());
                $router->post('password/email',         $auth->getRoutePasswordEmailPostAction());
                $router->get('password/reset/{token?}', $auth->getRoutePasswordResetGetAction());
                $router->post('password/reset',         $auth->getRoutePasswordResetPostAction());
            }
        );
    }
protected function buildRoutesForAuth ( Router $ router ) { $ auth = $ this -> core -> auth ( ) ; $ router -> group ( [ 'prefix' => 'auth' , ] , function ( Router $ router ) use ( $ auth ) { $ router -> get ( 'login' , $ auth -> getRouteLoginAction ( ) ) ; $ router -> post ( 'login' , $ auth -> getRouteLoginPostAction ( ) ) ; $ router -> get ( 'logout' , $ auth -> getRouteLogoutAction ( ) ) ; $ router -> get ( 'password/email' , $ auth -> getRoutePasswordEmailGetAction ( ) ) ; $ router -> post ( 'password/email' , $ auth -> getRoutePasswordEmailPostAction ( ) ) ; $ router -> get ( 'password/reset/{token?}' , $ auth -> getRoutePasswordResetGetAction ( ) ) ; $ router -> post ( 'password/reset' , $ auth -> getRoutePasswordResetPostAction ( ) ) ; } ) ; }
Builds up routes for authorization in the given router context.

@param Router $router
Builds up routes for authorization in the given router context .