This commit is contained in:
Alejandro Tasistro 2025-06-19 23:29:38 -03:00
parent d890d405bd
commit 6627118dce
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,9 @@ class FiltroDeSubpedido extends Filtro
{
public function grupoDeCompra(String $valor)
{
if (!is_numeric($valor)) { throw new TypeError();}
if (!is_numeric($valor))
throw new TypeError();
$this->builder->where('grupo_de_compra_id', intval($valor));
}
}

View file

@ -13,7 +13,6 @@ use App\Http\Resources\SubpedidoResource;
use Illuminate\Validation\Rule;
use Symfony\Component\HttpKernel\Exception\HttpException;
class SubpedidoController extends Controller
{
public function index(FiltroDeSubpedido $filtros, Request $request)