From 0a5dd6dae75bb8f3683f6587456f3b7838b63acb Mon Sep 17 00:00:00 2001 From: TheSilva7 Date: Thu, 27 Mar 2025 11:54:35 -0600 Subject: [PATCH] status --- app/Http/Controllers/TiposVeiculosController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/TiposVeiculosController.php b/app/Http/Controllers/TiposVeiculosController.php index b9b1b2f..ee7a5ea 100644 --- a/app/Http/Controllers/TiposVeiculosController.php +++ b/app/Http/Controllers/TiposVeiculosController.php @@ -15,7 +15,7 @@ class TiposVeiculosController extends Controller $busqueda = $request->busqueda; if($busqueda) { - $tiposVeiculos = tiposVeiculos::where('nombre', 'LIKE', "%{$busqueda}%")->where('status', true)->get(); + $tiposVeiculos = tiposVeiculos::where('nombre', 'LIKE', "%{$busqueda}%")->get(); if($tiposVeiculos->count() == 0) { return redirect()->route('tiposVeiculos.index') @@ -33,7 +33,7 @@ class TiposVeiculosController extends Controller } // Si no hay búsqueda, mostrar todas las marcas - $tiposVeiculos = tiposVeiculos::where('status', true)->get(); + $tiposVeiculos = tiposVeiculos::all(); return view('vehiculos', ["tiposVeiculos" => $tiposVeiculos]); }