dimanche 11 août 2019

Is using repository pattern useful in Laravel for eloquent models?

What are the advantages of repository pattern in Laravel? Repository pattern is for models that have no idea about storage layer and comes from Data Mapper ORMs, but in Eloquent is an active record ORM and models do persist and fetching data by themselves. So does using repository pattern in Laravel for Eloquent models have any benefit? What problem does it solve? Why this pattern is popular in the Laravel community?

Aucun commentaire:

Enregistrer un commentaire