File: /var/www/vhost/disk-apps/comfama.sports-crowd.com/app/Models/Experience/ExperiencePayment.php
<?php
namespace App\Models\Experience;
use App\PaymentTransaction;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ExperiencePayment extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at'];
protected $fillable = [
'id',
'payment_identifier',
'description',
'price',
'price_discount',
'discount',
'subtotal',
'service_charge',
'total',
'payment_due_date',
'experience_plan_price_id',
'experience_user_id',
'payment_transaction_id'
];
function experience_plan_price()
{
return $this->belongsTo(ExperiencePlanPrice::class);
}
function experience_user()
{
return $this->belongsTo(ExperienceUser::class);
}
function payment_transaction()
{
return $this->belongsTo(PaymentTransaction::class)->with('gateway_payments');
}
}