private function syncCategory(Application $app, array $AppCategoryList) { $app->AppCategories()->sync($AppCategoryList); }