DEV Community

Discussion on: Implement CRUD with Laravel Service-Repository Pattern

Collapse
 
mahdipishguy profile image
Mahdi Pishguy

i think service-repository implementation difficult than repository-pattern, do you agree?

Collapse
 
safventure11000 profile image
Josafe Balili • 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

Some comments have been hidden by the post's author - find out more