add metrics
This commit is contained in:
@@ -69,6 +69,11 @@ class Order extends Model
|
||||
return $query->where('delivery_id', $deliveryId);
|
||||
}
|
||||
|
||||
public function scopeWaiting($query)
|
||||
{
|
||||
return $query->byStatus(0);
|
||||
}
|
||||
|
||||
public function scopePreparation($query)
|
||||
{
|
||||
return $query->byStatus(1);
|
||||
|
||||
Reference in New Issue
Block a user