composer require spatie/valuestore
valuestoreclass. When you use that, you are directly interacting with the settings stored in the file.
settingsbound to the app container, you are using a cached version of the values as they were at the start of the request cycle (as an associated array).
valuestorethe file will only be accessed once and not for each iterated product in a collection.