find(); $value = $configQuickEntrance->value; foreach ($value as &$item) { if (str_starts_with($item['value'], '/admin/')) { $pathData = Db::name('admin_rule')->where('path', substr($item['value'], 7))->find(); if ($pathData) { $item['value'] = $pathData['name']; } } } $configQuickEntrance->value = $value; $configQuickEntrance->save(); Cache::tag(Config::$cacheTag)->clear(); } }