ok
Direktori : /home2/selectio/www/3idiotsgadgetstore.in/app/Model/ |
Current File : /home2/selectio/www/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'); } }