public function getRenderedReasonAttribute() : ?string
    {
        if ($this->renderedReason !== null) {
            return $this->renderedReason;
        }

        if ($this->config->get('laranixauth.cage.save_rendered', true) &&
            ($rendered = $this->getAttributeFromArray('reason_rendered')) !== null) {
            return $this->renderedReason = $rendered;
        }

        if (($raw = $this->getAttributeFromArray('reason')) !== null) {
            return $this->renderedReason = markdown($raw);
        }

        return null;
    }
public function getRenderedReasonAttribute() : ?string
    {
        if ($this->renderedReason !== null) {
            return $this->renderedReason;
        }

        if ($this->config->get('laranixauth.cage.save_rendered', true) &&
            ($rendered = $this->getAttributeFromArray('reason_rendered')) !== null) {
            return $this->renderedReason = $rendered;
        }

        if (($raw = $this->getAttributeFromArray('reason')) !== null) {
            return $this->renderedReason = markdown($raw);
        }

        return null;
    }
public function getRenderedReasonAttribute ( ) : ? string { if ( $ this -> renderedReason !== null ) { return $ this -> renderedReason ; } if ( $ this -> config -> get ( 'laranixauth.cage.save_rendered' , true ) && ( $ rendered = $ this -> getAttributeFromArray ( 'reason_rendered' ) ) !== null ) { return $ this -> renderedReason = $ rendered ; } if ( ( $ raw = $ this -> getAttributeFromArray ( 'reason' ) ) !== null ) { return $ this -> renderedReason = markdown ( $ raw ) ; } return null ; }
Get rendered reason

@return null|string
Get rendered reason