private function categoryTitleAndId() { $categories = Category::forCreate()->get(); $cats = []; foreach ($categories as $category) { $cats[$category->id] = $category->title; } return $cats; }