ok

Mini Shell

Direktori : /home2/selectio/public_html/3idiotsgadgetstore.in/app/Model/
Upload File :
Current File : //home2/selectio/public_html/3idiotsgadgetstore.in/app/Model/OrderTransaction.php

<?php

namespace App\Model;

use App\User;
use Illuminate\Database\Eloquent\Model;

class OrderTransaction extends Model
{
    public function seller()
    {
        return $this->belongsTo(Seller::class, 'seller_id');
    }

    public function customer()
    {
        return $this->belongsTo(User::class, 'customer_id');
    }

    public function order()
    {
        return $this->belongsTo(Order::class, 'order_id');
    }

    public function order_details()
    {
        return $this->hasMany(OrderDetail::class, 'order_id', 'order_id');
    }

}

Zerion Mini Shell 1.0