coding styles
This commit is contained in:
@@ -72,7 +72,7 @@ class Delivery extends Model
|
||||
{
|
||||
return $query->whereIn($this->table.'.sale_channel_id', $ids);
|
||||
}
|
||||
|
||||
|
||||
public function scopeBySaleChannel($query)
|
||||
{
|
||||
return $query->where($this->table.'.sale_channel_id', 1);
|
||||
@@ -90,7 +90,7 @@ class Delivery extends Model
|
||||
|
||||
public function scopeByCustomer($query, $customerId)
|
||||
{
|
||||
return $query->whereHas('customers', function($query) use ($customerId) {
|
||||
return $query->whereHas('customers', function ($query) use ($customerId) {
|
||||
return $query->byId($customerId);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user