/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $instituicao = Instituicao::findOrFail($id); $instituicao->delete(); return redirect('/instituicao'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $membro = Membro::findOrFail($id); $insts = Instituicao::all(); return view('membros.edit', array('membro' => $membro, 'insts' => $insts)); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $instituicao = Instituicao::findOrFail($id); return view('/instituicao.edit', array('instituicao' => $instituicao)); }