public function setOrder($id, Request $request)
    {
        $menu = $this->repository->find($id);
        $result = $this->repository->setOrder($menu, $request->except('_token'));

        return app(CmsResponseService::class)->apiResponse('success', $result);
    }
public function setOrder($id, Request $request)
    {
        $menu = $this->repository->find($id);
        $result = $this->repository->setOrder($menu, $request->except('_token'));

        return app(CmsResponseService::class)->apiResponse('success', $result);
    }
public function setOrder ( $ id , Request $ request ) { $ menu = $ this -> repository -> find ( $ id ) ; $ result = $ this -> repository -> setOrder ( $ menu , $ request -> except ( '_token' ) ) ; return app ( CmsResponseService :: class ) -> apiResponse ( 'success' , $ result ) ; }
Set the order

@return Response
Set the order