I’m in laravel 10, and I need to analyse some data.
During the analisis I need to save them in a little different way (I can save them olso in the same way is not a big problem) but the logic is more or less the same.
I need to check all the data and them save them in two different tables, one every half hour, and one for the single day (max min avg values [for the daily report I need to get the datetime where I have maximum and minimum]).
For the moment I have two different models, but everytime I need to change each two models.
I can code it in a single point?? I was thinking about interface, but I olso read about laravel service provider, but I never handle them.
Any suggestion?