dimanche 9 juillet 2017

Place to write laravel RAW queries?

We are currently working with a big laravel 5.2 project. For our query, we always try to use Eloquent ORM. But sometimes we need to use RAW queries.

We think in future, we have to write more RAW queries. So we need a separate place and a well-organised way to write RAW queries.We don’t want to write raw query in our controller and model.

Is there any other place where we can put raw queries. Or what is the best procedure to write raw queries(Write a separate file or repository etc.)



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2u6OOJj
via IFTTT

Aucun commentaire:

Enregistrer un commentaire