Current File : //proc/thread-self/root/proc/self/root/home/tradevaly/www/app/Models/Transaction.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
 
class Transaction extends Model
{
   public function user(){
        return $this->belongsTo(User::class);
    }
     public function subscriber()
    {
        return $this->belongsTo(Subscriber::class, 'order_id', 'order_id');
    }
    public function advertiser()
    {
        return $this->belongsTo(AdvertiserOrder::class, 'order_id', 'order_id');
    }
}