private static function prepareMiddleware(IlluminateRoute $route)
    {
        return array_map(function ($value) {
            return $value instanceof \Closure ? 'Closure' : $value;
        }, self::gatherMiddleware($route));
    }
private static function prepareMiddleware(IlluminateRoute $route)
    {
        return array_map(function ($value) {
            return $value instanceof \Closure ? 'Closure' : $value;
        }, self::gatherMiddleware($route));
    }
private static function prepareMiddleware ( IlluminateRoute $ route ) { return array_map ( function ( $ value ) { return $ value instanceof \ Closure ? 'Closure' : $ value ; } , self :: gatherMiddleware ( $ route ) ) ; }
Prepare route middleware.

@param  \Illuminate\Routing\Route  $route

@return array
Prepare route middleware .