From 409d041a91dccef87da3bd22428f8930ee33b22b Mon Sep 17 00:00:00 2001 From: sergiomarquez778 Date: Fri, 7 Mar 2025 12:57:00 -0600 Subject: [PATCH] correcion de preguntas y agregar tiempo de respuestas --- app/Http/Controllers/MarcaController.php | 2 +- resources/views/marcas.blade.php | 14 +++++- resources/views/marcasCrearEditar.blade.php | 51 +-------------------- 3 files changed, 15 insertions(+), 52 deletions(-) diff --git a/app/Http/Controllers/MarcaController.php b/app/Http/Controllers/MarcaController.php index ba4913e..c93a0da 100644 --- a/app/Http/Controllers/MarcaController.php +++ b/app/Http/Controllers/MarcaController.php @@ -81,7 +81,7 @@ class MarcaController extends Controller $marca = Marca::find($id); $marca->fill($request->all()); $marca->save(); - return redirect()->route('marca.index'); + return redirect()->route('marca.index')->with('success', 'Marca actualizada exitosamente.'); } /** diff --git a/resources/views/marcas.blade.php b/resources/views/marcas.blade.php index f1c6d52..999332e 100644 --- a/resources/views/marcas.blade.php +++ b/resources/views/marcas.blade.php @@ -4,7 +4,7 @@
@if(session('success')) -
- - @endsection