Experimenting with the creation of webstore on laravel 5.7. I am trying to implement the functionality of points of sale - individual stores, regions, countries, etc., which have their own individual products and prices.
Switch in header. When you visit the site it automatically set to the default value (then maybe it will be determined by location).
The problem. I can not decide how can I do it. User enters the site and ... so what? Where should the logic be described? View (header) - common to all pages. There I need to show the selected point of sale. So, I need to store it somewhere. And the code should work immediately when you open the site. This is something global with access to the cache. What is the best way to do this and how?