Filtro de columnas
This commit is contained in:
@ -85,4 +85,9 @@ class BonoPie extends Ideal\Repository
|
|||||||
->where('venta.id = ?');
|
->where('venta.id = ?');
|
||||||
return $this->fetchOne($query, [$venta_id]);
|
return $this->fetchOne($query, [$venta_id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function filterData(array $data): array
|
||||||
|
{
|
||||||
|
return array_intersect_key($data, array_flip(['valor', 'pago']));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user