fix shipping
This commit is contained in:
@@ -58,14 +58,14 @@ class Order extends Model
|
||||
return $query->where('uuid', $uuid);
|
||||
}
|
||||
|
||||
public function scopeByCustomer($query, $customer_id)
|
||||
public function scopeByCustomer($query, $customerId)
|
||||
{
|
||||
return $query->where('customer_id', $customer_id);
|
||||
return $query->where('customer_id', $customerId);
|
||||
}
|
||||
|
||||
public function scopeByDelivery($query, $delivery_id)
|
||||
public function scopeByDelivery($query, $deliveryId)
|
||||
{
|
||||
return $query->where('delivery_id', $delivery_id);
|
||||
return $query->where('delivery_id', $deliveryId);
|
||||
}
|
||||
|
||||
public function scopePreparation($query)
|
||||
@@ -88,9 +88,9 @@ class Order extends Model
|
||||
return $query->where('status', $status);
|
||||
}
|
||||
|
||||
public function scopeByPaymentType($query, $payment_type)
|
||||
public function scopeByPaymentType($query, $paymentType)
|
||||
{
|
||||
return $query->where('payment_type', $payment_type);
|
||||
return $query->where('payment_type', $paymentType);
|
||||
}
|
||||
|
||||
public function scopeByPeriod($query, $start, $end, $field = 'created_at')
|
||||
|
||||
Reference in New Issue
Block a user