count()) { self::firstOrCreate($v); } } return true; } public static function getOption() { $data = self::where('status', 1)->pluck('name', 'id')->toArray(); return array_prepend($data, '暂无', 0); } }