public function getActionsAttribute()
    {
        if (!$this->relationLoaded('actions')) {
            $this->load('actions');
        }

        return $this->getRelation('actions')->load('revisioned')->map(function ($revision) {
            if ($revisioned = $revision->revisioned) {
                return $revisioned->wrapRevision($revision);
            }

            return $revision;
        });
    }
public function getActionsAttribute()
    {
        if (!$this->relationLoaded('actions')) {
            $this->load('actions');
        }

        return $this->getRelation('actions')->load('revisioned')->map(function ($revision) {
            if ($revisioned = $revision->revisioned) {
                return $revisioned->wrapRevision($revision);
            }

            return $revision;
        });
    }
public function getActionsAttribute ( ) { if ( ! $ this -> relationLoaded ( 'actions' ) ) { $ this -> load ( 'actions' ) ; } return $ this -> getRelation ( 'actions' ) -> load ( 'revisioned' ) -> map ( function ( $ revision ) { if ( $ revisioned = $ revision -> revisioned ) { return $ revisioned -> wrapRevision ( $ revision ) ; } return $ revision ; } ) ; }
Accessor for actions property.

@return \Illuminate\Database\Eloquent\Collection
Accessor for actions property .