fix on payment by cb
This commit is contained in:
@@ -44,6 +44,11 @@ class Invoice extends Model
|
||||
return $query->where('uuid', $uuid);
|
||||
}
|
||||
|
||||
public function scopeById($query, $id)
|
||||
{
|
||||
return $query->where('id', $id);
|
||||
}
|
||||
|
||||
public function scopeByPeriod($query, $start, $end)
|
||||
{
|
||||
return $query->whereBetween('created_at', [$start, $end]);
|
||||
|
||||
Reference in New Issue
Block a user