From 35a1b3bce550779a141739c7a80e6fdb3a4e8b1d Mon Sep 17 00:00:00 2001 From: sergiomarquez778 Date: Thu, 20 Mar 2025 10:37:32 -0600 Subject: [PATCH] busqueda --- app/Http/Controllers/TiposLicenciasController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TiposLicenciasController.php b/app/Http/Controllers/TiposLicenciasController.php index 71f3ac9..0095913 100644 --- a/app/Http/Controllers/TiposLicenciasController.php +++ b/app/Http/Controllers/TiposLicenciasController.php @@ -16,7 +16,7 @@ class TiposLicenciasController extends Controller $busqueda = $request->busqueda; if($busqueda) { - $tiposLicencias = TiposLicencias::where('nombre', 'LIKE', "%{$busqueda}%")->get(); + $tiposLicencias = TiposLicencias::where('tipoLicencia', 'LIKE', "%{$busqueda}%")->get(); if($tiposLicencias->count() == 0) { return redirect()->route('tiposLicencias.index')