Hello,
so i am creating value Money( 500, Currency('EUR') ). What would be the best approach to validate Currency if allowed currencies are dynamically created and stored in db? Should i run query each time Currency object is created? Of course it can be cached and so, but how should i access persistence layer from with in Currency object (i cant pass it in constructor)?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community