src/Presenter.php
public function mutatorsToArray()
    {
        $mutatedAttributes = [];

        $mutators = $this->getMutatedAttributes();

        foreach ($mutators as $mutator) {
            $mutatedAttributes[Str::snake($mutator)] = $this->mutateAttribute($mutator);
        }

        return $mutatedAttributes;
    }
public function mutatorsToArray()
    {
        $mutatedAttributes = [];

        $mutators = $this->getMutatedAttributes();

        foreach ($mutators as $mutator) {
            $mutatedAttributes[Str::snake($mutator)] = $this->mutateAttribute($mutator);
        }

        return $mutatedAttributes;
    }
public function mutatorsToArray ( ) { $ mutatedAttributes = [ ] ; $ mutators = $ this -> getMutatedAttributes ( ) ; foreach ( $ mutators as $ mutator ) { $ mutatedAttributes [ Str :: snake ( $ mutator ) ] = $ this -> mutateAttribute ( $ mutator ) ; } return $ mutatedAttributes ; }
Convert the decorators instance's mutators to an array.

@return array
Convert the decorators instance s mutators to an array .