src/Resolver.php
public function resolve($middleware, &$key = null)
    {
        if ($this->isCollection($middleware)) {
            return $this->resolveMany($middleware, $key ?: Group::DEFAULT_ID);
        } else {
            return $this->resolveOne($middleware, $key);
        }
    }
public function resolve($middleware, &$key = null)
    {
        if ($this->isCollection($middleware)) {
            return $this->resolveMany($middleware, $key ?: Group::DEFAULT_ID);
        } else {
            return $this->resolveOne($middleware, $key);
        }
    }
Resolve the given middleware.

@param mixed $middleware
@param mixed $key
@return bool|\Closure|\MichaelRShelton\MiddleMan\Interfaces\MiddlewareInterface|\MichaelRShelton\MiddleMan\Contracts|MiddlewareCollection