Example #1
0
 /**
  * Show the form for editing the specified contest.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $menu = Menu::where('tipe', Sentry::getUser()->last_name)->get();
     $contest = Contest::find(Crypt::decrypt($id));
     return View::make('contests.edit', compact('contest'))->withTitle('Ubah')->with('menu', $menu);
 }