Browse Source

Correccion ruta docentes

main
Damian 4 weeks ago
parent
commit
5115441980
  1. 2
      resources/views/docentesCrearEditar.blade.php
  2. 1
      routes/web.php

2
resources/views/docentesCrearEditar.blade.php

@ -7,7 +7,7 @@
<h2 class="text-2xl font-bold">{{ isset($docente) ? 'Editar Docente' : 'Crear Docente' }}</h2>
</div>
<div class="p-4">
<form action="{{ isset($docente) ? route('docente.update', $docente->id) : route('docente.store') }}" method="POST">
<form action="{{ isset($docente) ? route('docentes.update', $docente->id) : route('docentes.store') }}" method="POST">
@csrf
@if(isset($docente))
@method('PUT')

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

Loading…
Cancel
Save