Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dixitchopra's avatar

Repository Help

I am using Controller, Service and Repository pattern in my Laravel application. I have created separate tables like users, brands, cars, etc.

How can I make the best of repositories? How to update two three tables after a new record in a table? Where should I write that code - in the same repository or different repositories and making use of services?

0 likes
0 replies

Please or to participate in this conversation.