From cf4e931e713915888556bc31213a980dbd7846a0 Mon Sep 17 00:00:00 2001 From: sergiomarquez778 Date: Thu, 20 Mar 2025 12:35:25 -0600 Subject: [PATCH] cambio de la barra csmbio a que busque solo los activos --- app/Http/Controllers/MarcaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MarcaController.php b/app/Http/Controllers/MarcaController.php index 9bafa5b..47bee09 100644 --- a/app/Http/Controllers/MarcaController.php +++ b/app/Http/Controllers/MarcaController.php @@ -16,7 +16,7 @@ class MarcaController extends Controller if ($busqueda) { // Busca en la columna 'marca' de la tabla 'marcas' - $marcas = Marca::where('marca', 'LIKE', "%{$busqueda}%")->get(); + $marcas = Marca::where('marca', 'LIKE', "%{$busqueda}%")->where('eliminado', 0)->get(); if ($marcas->isEmpty()) { return redirect()->route('marca.index')