1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01: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');
}
}