funcion/pedido-ollas #47

Merged
rho merged 92 commits from funcion/pedido-ollas into master 2025-07-15 11:27:30 -03:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 6627118dce - Show all commits

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)