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')