Strimoid/Strimoid

View on GitHub
app/Models/Traits/HasNotificationsRelationship.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Strimoid\Models\Traits;

use Strimoid\Models\Notification;

trait HasNotificationsRelationship
{
    /**
     * Notifications relationship.
     *
     */
    public function notifications()
    {
        return $this->morphMany(Notification::class, 'element');
    }
}