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');