I am creating app based on PHP framework Laravel and MySQL. I have Site model with no more than 100 records in it.
For every Site I must make some calculations and get array of values as result. The problem is, due to the specifics of the sites, each single site requires different calculations with different input values. This leads to completely different code for different Sites.
My first taught was to create function for every Site in SiteController and call it when needed, but this looks ugly and will make the controller way to fat. Please suggest better method to deal with this.