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