feat: Implement payment proof upload for orders, add payment method selection API, and seed bank transfer payment options.
This commit is contained in:
@@ -46,7 +46,7 @@ class Order extends Model
|
||||
|
||||
public function payment()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\Payment::class);
|
||||
return $this->belongsTo(\App\Models\Payment::class, 'payment_method', 'id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
@@ -56,7 +56,7 @@ class Order extends Model
|
||||
|
||||
public function orderItem()
|
||||
{
|
||||
return $this->belongsToMany(\App\Models\InvoiceItem::class, 'order__order_item', 'order_id', 'invoice_item_id');
|
||||
return $this->belongsToMany(\App\Models\InvoiceItem::class, 'order_items', 'order_id', 'invoice_item_id');
|
||||
}
|
||||
|
||||
public function orderItems()
|
||||
|
||||
Reference in New Issue
Block a user