public function getQueueableRelations()
    {
        $relations = [];

        foreach ($this->getRelations() as $key => $relation) {
            if (method_exists($this, $key)) {
                $relations[] = $key;
            }

            if ($relation instanceof QueueableCollection) {
                foreach ($relation->getQueueableRelations() as $collectionValue) {
                    $relations[] = $key.'.'.$collectionValue;
                }
            }

            if ($relation instanceof QueueableEntity) {
                foreach ($relation->getQueueableRelations() as $entityKey => $entityValue) {
                    $relations[] = $key.'.'.$entityValue;
                }
            }
        }

        return array_unique($relations);
    }
public function getQueueableRelations()
    {
        $relations = [];

        foreach ($this->getRelations() as $key => $relation) {
            if (method_exists($this, $key)) {
                $relations[] = $key;
            }

            if ($relation instanceof QueueableCollection) {
                foreach ($relation->getQueueableRelations() as $collectionValue) {
                    $relations[] = $key.'.'.$collectionValue;
                }
            }

            if ($relation instanceof QueueableEntity) {
                foreach ($relation->getQueueableRelations() as $entityKey => $entityValue) {
                    $relations[] = $key.'.'.$entityValue;
                }
            }
        }

        return array_unique($relations);
    }
public function getQueueableRelations ( ) { $ relations = [ ] ; foreach ( $ this -> getRelations ( ) as $ key => $ relation ) { if ( method_exists ( $ this , $ key ) ) { $ relations [ ] = $ key ; } if ( $ relation instanceof QueueableCollection ) { foreach ( $ relation -> getQueueableRelations ( ) as $ collectionValue ) { $ relations [ ] = $ key . '.' . $ collectionValue ; } } if ( $ relation instanceof QueueableEntity ) { foreach ( $ relation -> getQueueableRelations ( ) as $ entityKey => $ entityValue ) { $ relations [ ] = $ key . '.' . $ entityValue ; } } } return array_unique ( $ relations ) ; }
Get the queueable relationships for the entity.

@return array
Get the queueable relationships for the entity .