public function featured() { $biz_id = \Input::get('id'); $newValue = \Input::get('data'); $biz = \App\Biz::whereId($biz_id)->first(); $biz->featured = $newValue; if ($biz->save()) { return \Response::json(array('status' => 1)); } else { return \Response::json(array('status' => 'error', 'msg' => 'could not be updated')); } }