public function sort(Category $categoryObj) { $inputArr = Input::all(); $categoryObj->updateCategoryRank($inputArr['cat']); }