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