DEV Community

loading...

Discussion on: Implement CRUD with Laravel Service-Repository Pattern

Collapse
safventure profile image
Saf Venture Author • Edited

I agree with you. I think laravel repository pattern implementation is easier because you only need to add the repository. But if you're thinking on the readability and flexibility of your system, I highly recommend the service-repository pattern. Separating the logic (service) and the wrapper of the model (repository) is not hard at all.

Collapse
mahdipishguy profile image
Mahdi Pishguy

I will definitely test it