mercredi 15 avril 2020

Should you use create/update/delete methods in a repository in Laravel? I'm seeing differing opinions

I've read that you should not put create and update methods in a repository and i'm seeing the opposite in practice. Needless to say i'm confused on the best practice here. Any actual documentation on where to put the create/update/delete methods when using the repository pattern?

I'm thinking the repositories i'm talking about are persistence oriented repositories not collection oriented repositories as Martin Fowler’s definition of the repository pattern explicitly talks about.

Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire