DEV Community


Discussion on: Implement CRUD with Laravel Service-Repository Pattern

ostap profile image
Ostap Bregin

Why create these complications?

I don't think it's good practice in that case.

safventure profile image
Saf Venture Author • Edited


Thanks for dropping by.

Based on my experience, Laravel service-repository pattern is conducive if you're working in a big team or big projects. It is also sustainable and easy to understand to separate the logic and the wrapper of the model. The concept of repositories and services ensures that you write reusable code and helps to keep your controller as simple as possible making them more readable.