src/Recovery.php
public function toCollection()
    {
        if (function_exists($this->collectionFunction)) {
            return call_user_func($this->collectionFunction, $this->toArray());
        }

        throw new \Exception(
            "Function {$this->collectionFunction}() was not found. " .
            "You probably need to install a suggested package?"
        );
    }
public function toCollection()
    {
        if (function_exists($this->collectionFunction)) {
            return call_user_func($this->collectionFunction, $this->toArray());
        }

        throw new \Exception(
            "Function {$this->collectionFunction}() was not found. " .
            "You probably need to install a suggested package?"
        );
    }
Get a collection of recovery codes.

@return array
@throws \Exception