From 51154419802e888228deef4c874604d1b889fe77 Mon Sep 17 00:00:00 2001 From: Damian Date: Thu, 6 Mar 2025 08:19:16 -0600 Subject: [PATCH] Correccion ruta docentes --- resources/views/docentesCrearEditar.blade.php | 2 +- routes/web.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/docentesCrearEditar.blade.php b/resources/views/docentesCrearEditar.blade.php index 9cab84d..277c60c 100644 --- a/resources/views/docentesCrearEditar.blade.php +++ b/resources/views/docentesCrearEditar.blade.php @@ -7,7 +7,7 @@

{{ isset($docente) ? 'Editar Docente' : 'Crear Docente' }}

-
+ @csrf @if(isset($docente)) @method('PUT') diff --git a/routes/web.php b/routes/web.php index 2951b3d..d572751 100644 --- a/routes/web.php +++ b/routes/web.php @@ -25,6 +25,7 @@ Auth::routes(['register'=>true,'reset'=>false]); Route::resource('marca', MarcaController::class); Route::resource('docentes', DocentesController::class); + // Rutas protegidas que requieren autenticación Route::middleware(['auth'])->group(function () { Route::get('/dashboard', [HomeController::class, 'index'])->name('dashboard');