Пример #1
0
 public function get_delete($id)
 {
     $sponsors = Sponsor::find($id)->delete();
     return Redirect::to('rms/sponsors')->with('success', 'Successfully Removed Sponsor');
 }
Пример #2
0
 /**
  * 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");
 }