minor fixes
This commit is contained in:
@@ -20,13 +20,13 @@ class CustomerDelivery extends Model
|
||||
return $this->belongsTo(Delivery::class);
|
||||
}
|
||||
|
||||
public function scopeByCustomer($query, $customer_id)
|
||||
public function scopeByCustomer($query, $customerId)
|
||||
{
|
||||
return $query->where($this->table.'.customer_id', $customer_id);
|
||||
return $query->where($this->table.'.customer_id', $customerId);
|
||||
}
|
||||
|
||||
public function scopeByDelivery($query, $customer_id)
|
||||
public function scopeByDelivery($query, $deliveryId)
|
||||
{
|
||||
return $query->where($this->table.'.delivery_id', $customer_id);
|
||||
return $query->where($this->table.'.delivery_id', $deliveryId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user