public function getBranchByID(Request $request, $id) { $data = Branches::getBranchByID($id); return response()->json($data); }