src/Auditable.php
protected function resolveAttributeGetter($event)
    {
        foreach ($this->getAuditEvents() as $key => $value) {
            $auditableEvent = is_int($key) ? $value : $key;

            $auditableEventRegex = sprintf('/%s/', preg_replace('/\*+/', '.*', $auditableEvent));

            if (preg_match($auditableEventRegex, $event)) {
                return is_int($key) ? sprintf('get%sEventAttributes', ucfirst($event)) : $value;
            }
        }
    }
protected function resolveAttributeGetter($event)
    {
        foreach ($this->getAuditEvents() as $key => $value) {
            $auditableEvent = is_int($key) ? $value : $key;

            $auditableEventRegex = sprintf('/%s/', preg_replace('/\*+/', '.*', $auditableEvent));

            if (preg_match($auditableEventRegex, $event)) {
                return is_int($key) ? sprintf('get%sEventAttributes', ucfirst($event)) : $value;
            }
        }
    }
protected function resolveAttributeGetter ( $ event ) { foreach ( $ this -> getAuditEvents ( ) as $ key => $ value ) { $ auditableEvent = is_int ( $ key ) ? $ value : $ key ; $ auditableEventRegex = sprintf ( '/%s/' , preg_replace ( '/\*+/' , '.*' , $ auditableEvent ) ) ; if ( preg_match ( $ auditableEventRegex , $ event ) ) { return is_int ( $ key ) ? sprintf ( 'get%sEventAttributes' , ucfirst ( $ event ) ) : $ value ; } } }
Attribute getter method resolver.

@param string $event

@return string|null
Attribute getter method resolver .