so I am developing a web app in php using Laravel framework. I have 12 Models and 1 Controller, and 12 Repositories linking to models. In each repository I am writing some functions with queries, so they are not repeated in controller. I am trying to inject repositories in controller constructor, and don't know how many of them are too many?
I heard, its 1 or 2 usualy, but I have 12 of them so far.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hOybbS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire