dimanche 23 mai 2021

Laravel - Correct way to process query result

Is there a design, pattern or area, to process result of a query?

Ex: I have a query to returns a list of timestamps. I need to calculate some information based on this information and return it to the user.

Where would be the best place to process this data, in the repository, controller, or some separate place?

Aucun commentaire:

Enregistrer un commentaire