protected function gatherMiddlewareClassNames($middleware)
    {
        $middleware = is_string($middleware) ? explode('|', $middleware) : (array) $middleware;

        return array_map(function ($name) {
            list($name, $parameters) = array_pad(explode(':', $name, 2), 2, null);

            return Arr::get($this->routeMiddleware, $name, $name).($parameters ? ':'.$parameters : '');
        }, $middleware);
    }
protected function gatherMiddlewareClassNames($middleware)
    {
        $middleware = is_string($middleware) ? explode('|', $middleware) : (array) $middleware;

        return array_map(function ($name) {
            list($name, $parameters) = array_pad(explode(':', $name, 2), 2, null);

            return Arr::get($this->routeMiddleware, $name, $name).($parameters ? ':'.$parameters : '');
        }, $middleware);
    }
protected function gatherMiddlewareClassNames ( $ middleware ) { $ middleware = is_string ( $ middleware ) ? explode ( '|' , $ middleware ) : ( array ) $ middleware ; return array_map ( function ( $ name ) { list ( $ name , $ parameters ) = array_pad ( explode ( ':' , $ name , 2 ) , 2 , null ) ; return Arr :: get ( $ this -> routeMiddleware , $ name , $ name ) . ( $ parameters ? ':' . $ parameters : '' ) ; } , $ middleware ) ; }
Gather the full class names for the middleware short-cut string.

@param  string  $middleware
@return array
Gather the full class names for the middleware short - cut string .