coding styles

This commit is contained in:
ludo
2024-01-04 15:54:18 +01:00
parent 04f92c9695
commit d33dd6e755
9 changed files with 13 additions and 24 deletions

View File

@@ -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);
});
}