mercredi 23 janvier 2019

Where to put Data retrievement queries in Laravel

I'm working on a BI Project and I'm using Laraval 5.7

While my JS read filter options from the view and send those options to my controller so I retrieve data from my Database accordingly.

I'm thinking about two problems that I may have : 1- The Method that read the parameters and executes the queries are exposed directly in my URL and that may cause security problems. 2- the performances of my application are low because the queries are listed in the same method.

I have this question about if it's practical to put those queries in my Controller or I should put elsewhere. and how can I proceed to increase the performances



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire