芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/store.kwesioben.com/app/Model/OrderDetail.php
'integer', 'order_id' => 'integer', 'price' => 'float', 'discount' => 'float', 'qty' => 'integer', 'tax' => 'float', 'shipping_method_id' => 'integer', 'seller_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'refund_request'=>'integer', ]; public function product() { return $this->belongsTo(Product::class)->where('status', 1); } public function active_product() { return $this->belongsTo(Product::class)->where('status', 1); } public function product_all_status() { return $this->belongsTo(Product::class, 'product_id'); } public function order() { return $this->belongsTo(Order::class, 'order_id'); } public function seller() { return $this->belongsTo(Seller::class, 'seller_id'); } public function address() { return $this->belongsTo(ShippingAddress::class, 'shipping_address'); } public function verification_images(){ return $this->hasMany(OrderDeliveryVerification::class,'order_id','order_id'); } }