From d5d77284bf98d4728e0f6ae0e4d171d39ee7f7f0 Mon Sep 17 00:00:00 2001 From: Damian Date: Thu, 20 Mar 2025 12:53:58 -0600 Subject: [PATCH] Correccion capacidad --- app/Http/Controllers/CapacidadController.php | 1 + resources/views/capacidades.blade.php | 4 ++-- resources/views/capacidadesCrearEditar.blade.php | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/CapacidadController.php b/app/Http/Controllers/CapacidadController.php index e4caf50..6d49627 100644 --- a/app/Http/Controllers/CapacidadController.php +++ b/app/Http/Controllers/CapacidadController.php @@ -47,6 +47,7 @@ class CapacidadController extends Controller */ public function store(Request $request) { + $capacidad = new Capacidad($request->all()); $capacidad->save(); return redirect()->route('capacidades.index')->with('success', 'Capacidad creada exitosamente.'); diff --git a/resources/views/capacidades.blade.php b/resources/views/capacidades.blade.php index 3936eed..0780a22 100644 --- a/resources/views/capacidades.blade.php +++ b/resources/views/capacidades.blade.php @@ -29,7 +29,7 @@ ID - Cantidad + Capacidad Acciones @@ -37,7 +37,7 @@ @foreach($capacidades as $capacidad) {{ $capacidad->id }} - {{ $capacidad->cantidad }} + {{ $capacidad->capacidad }}
- @error('cantidad') + @error('capacidad')

{{ $message }}

@enderror