|
Server : Apache System : Linux d13078.sgp1.stableserver.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64 User : ssa2port ( 1003) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/ssa2port/accounts.trinityturbo.com/app/Models/ | |
|
Path: /home/ssa2port/accounts.trinityturbo.com/app/Models/Payment.php
Size: 699 B
Permissions: 0664
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Payment extends Model
{
protected $fillable = [
'date',
'amount',
'account_id',
'vender_id',
'description',
'category_id',
'payment_method',
'reference',
'created_by',
];
public function category()
{
return $this->hasOne('App\Models\ProductServiceCategory', 'id', 'category_id');
}
public function vender()
{
return $this->hasOne('App\Models\Vender', 'id', 'vender_id');
}
public function bankAccount()
{
return $this->hasOne('App\Models\BankAccount', 'id', 'account_id');
}
}