public function getFbCategory() { $records = FbCategory::all(); return Response::json(array('status' => 'success', 'data' => $records), 200); }
function categoryId() { $fbCategory = FbCategory::findByName($this->fb, 'Commissions'); $categoryId = $fbCategory->getId(); return $categoryId; }