EscolaLMS/payments

View on GitHub
src/Concerns/Billable.php

Summary

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

namespace EscolaLms\Payments\Concerns;

use EscolaLms\Payments\Models\Payment;
use Illuminate\Database\Eloquent\Relations\HasMany;

trait Billable
{
    public function payments(): HasMany
    {
        /** @var \EscolaLms\Core\Models\User $this */
        return $this->hasMany(Payment::class);
    }
}