/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $alumno = Alumno::findOrFail($id); $alumno->delete(); return redirect()->route('alu_index_url'); }
public function aluDestroy($id) { $alumno = Alumno::findOrFail($id); $alumno->delete(); return $alumno; }