protected function mapOtherwise(Router $router, $routes, $applyAlwaysAuthenticate)
    {
        $middleware = [
            SubstituteBindings::class,
            Acceptable::class,
            Timezone::class,
        ];

        if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
            $middleware[] = 'auth.api:true';
        }

        $router->group(['middleware' => $middleware], function (Router $router) use ($routes) {
            $routes->map($router);
        });
    }
protected function mapOtherwise(Router $router, $routes, $applyAlwaysAuthenticate)
    {
        $middleware = [
            SubstituteBindings::class,
            Acceptable::class,
            Timezone::class,
        ];

        if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
            $middleware[] = 'auth.api:true';
        }

        $router->group(['middleware' => $middleware], function (Router $router) use ($routes) {
            $routes->map($router);
        });
    }
protected function mapOtherwise ( Router $ router , $ routes , $ applyAlwaysAuthenticate ) { $ middleware = [ SubstituteBindings :: class , Acceptable :: class , Timezone :: class , ] ; if ( $ applyAlwaysAuthenticate && ! $ this -> isWhiteListedAuthRoute ( $ routes ) ) { $ middleware [ ] = 'auth.api:true' ; } $ router -> group ( [ 'middleware' => $ middleware ] , function ( Router $ router ) use ( $ routes ) { $ routes -> map ( $ router ) ; } ) ; }
Wrap the routes in the basic middleware.

@param \Illuminate\Routing\Router $router
@param object                     $routes
@param bool                       $applyAlwaysAuthenticate

@return void
Wrap the routes in the basic middleware .