public function get_delete($id) { $sponsors = Sponsor::find($id)->delete(); return Redirect::to('rms/sponsors')->with('success', 'Successfully Removed Sponsor'); }
/** * Show the form for editing the specified sponsor. * * @param int $id * @return Response */ public function edit($id) { $sponsor = Sponsor::find(Crypt::decrypt($id)); return View::make('sponsors.edit', compact('sponsor'))->withTitle("Sponsor"); }