Alimentalos/Backend

View on GitHub
relationships/src/Relationships/LocationRelationships.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Alimentalos\Relationships\Relationships;

trait LocationRelationships
{
    /**
     * Get all of the owning trackable models.
     */
    public function trackable()
    {
        return $this->morphTo(
            'trackable',
            'trackable_type',
            'trackable_id',
            'uuid'
        );
    }
}