/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id)
 {
     $this->bullet = Bullet::find($id);
     $this->bullet->fill(Input::all());
     if (!$this->bullet->valid()) {
         return Redirect::back()->withInput()->with('errors', $this->bullet->errors);
     } else {
         $this->bullet->update();
         return Redirect::route('projects.index');
     }
 }
 public function updateBullet()
 {
     $id = Input::get('id');
     $fieldname = Input::get('field');
     $value = Input::get('value');
     $bullet = Bullet::find($id);
     $bullet->{$fieldname} = $value;
     $bullet->save();
     return $this->success(null, null);
 }