1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00
invoiceninja/app/Models/Payment.php
2019-05-03 17:57:55 +10:00

38 lines
628 B
PHP

<?php
namespace App\Models;
use App\Models\Filterable;
use App\Utils\Traits\MakesHash;
use Illuminate\Database\Eloquent\Model;
class Payment extends BaseModel
{
use MakesHash;
use Filterable;
protected $guarded = [
'id',
];
public function client()
{
return $this->belongsTo(Client::class);
}
public function company()
{
return $this->belongsTo(Company::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function documents()
{
return $this->morphMany(Document::class, 'documentable');
}
}