JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr gilour

File "ReferralTransaction.php"

Full Path: /home/mipedido/web/mipedido.app/public_html/app/Models/ReferralTransaction.php
File size: 680 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ReferralTransaction extends Model
{
    use HasFactory;


    protected $fillable = [
        'owner_id',
        'plan_id',
        'plan_price',
        'commission',
        'referral_code',
    ];

    public function getPlan()
    {
        return $this->hasOne('App\Models\Plan', 'id', 'plan_id');
    }

    public function getUser()
    {
        return $this->hasOne('App\Models\User', 'id', 'owner_id');
    }

    // public function getOwner()
    // {
    //     return $this->hasOne('App\Models\User', 'id', 'req_user_id');
    // }
}