예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($society, $id)
 {
     if (Helpers::perm('admin', $society) or Helpers::perm('edit', $society)) {
         $data['society'] = $society;
         $data['skill'] = Skill::with('individual')->where('society_id', '=', $society)->find($id);
         $data['individuals'] = Individual::all();
         return View::make('skills.edit', $data);
     } else {
         return view('shared.unauthorised');
     }
 }