pluck('code') ->toArray(); $availableCurrencies = array_diff($supportedCurrencies, $storedCurrencies); return array_combine($availableCurrencies, $availableCurrencies); } public static function getDefaultCurrency(): ?string { $companyId = auth()->user()->currentCompany->id; $cacheKey = "default_currency_{$companyId}"; return Cache::rememberForever($cacheKey, function () { return Currency::query() ->where('enabled', true) ->value('code'); }); } }