public function get($index)
    {
        if (isset($this->callables[$index])) {
            return $this->callables[$index];
        }

        return $this->resolve($index);
    }
public function get($index)
    {
        if (isset($this->callables[$index])) {
            return $this->callables[$index];
        }

        return $this->resolve($index);
    }
public function get ( $ index ) { if ( isset ( $ this -> callables [ $ index ] ) ) { return $ this -> callables [ $ index ] ; } return $ this -> resolve ( $ index ) ; }
Get the middleware at the provided index.

@param int $index The index to fetch.
@return callable|null Either the callable middleware or null
if the index is undefined.
Get the middleware at the provided index .