Connor Leech
1 min readSep 13, 2018

--

Hey Robert Kabat for sure!

I’ve been using repositories at my job for about eight months. When I first started and wrote this article I was totally confused but now I really like using them. It’s a great place to write reusable methods. We have services as well that are for methods that use multiple repositories. As for the dependency injection in the controller, you could inject and interface and then bind the repo to the interface in Laravel settings. Not sure best approach here

--

--

Connor Leech
Connor Leech

Written by Connor Leech

Girl Dad x 2. Cofounder @Employbl. Software Engineer @CommentSold.

No responses yet