route('dashboard'); }); Auth::routes(['register'=>true,'reset'=>false]); Route::resource('marca', MarcaController::class); Route::resource('docentes', DocentesController::class); Route::resource('vehiculos', TiposVeiculosController::class); Route::resource('tiposLicencias', TiposLicenciasController::class); Route::get('/tiposLicencias/{id}/toggle-status', [TiposLicenciasController::class, 'toggleStatus'])->name('tiposLicencias.toggle-status'); Route::resource('capacidades', CapacidadController::class); Route::get('marcas/excel', [MarcaController::class, 'exportExcel'])->name('marcas.excel'); Route::get('marcas/pdf', [MarcaController::class, 'exportPDF'])->name('marcas.pdf'); Route::get('/docentes/export/{format}', [DocentesController::class, 'export'])->name('docentes.export'); Route::get('/docentes/{id}/toggle-status', [DocentesController::class, 'toggleStatus'])->name('docentes.toggle-status'); // Rutas protegidas que requieren autenticación Route::middleware(['auth'])->group(function () { Route::get('/dashboard', [HomeController::class, 'index'])->name('dashboard'); Route::get('/usuarios', [usuariosController::class,'index'])->name('usuarios'); Route::get('/usuarios/nuevo', [usuariosController::class,'create'])->name('usuarios.create'); Route::post('/usuarios/store', [usuariosController::class,'store'])->name('usuarios.store'); Route::get('/usuarios/{id}/edit', [usuariosController::class, 'edit'])->name('usuarios.edit'); Route::put('/usuarios/{id}', [usuariosController::class, 'update'])->name('usuarios.update'); Route::delete('/usuarios/{id}', [usuariosController::class, 'destroy'])->name('usuarios.destroy'); Route::get('/home', [HomeController::class, 'index'])->name('home'); });