/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $empleado = Empleado::find($id); $empleado->emptipo; $emptipos = Emptipo::orderBy('tipo', 'ASC')->lists('tipo', 'id'); return view('admin.empleados.edit')->with('empleado', $empleado)->with('emptipos', $emptipos); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Emptipo::destroy($id); return redirect()->route('admin.empleadoTipos.index'); }