/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Rotulo::find($id)->delete(); return redirect(route('rotulo')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $hospede = Hospede::find($id); $rotulos = Rotulo::all(); return view('hospede.edit', ['user' => $this->usuarioLogado, 'hospede' => $hospede, 'rotulos' => $rotulos]); }