2 years ago

To "Repository Pattern" or Not?

Posted 2 years ago by tempura

I acquired a very small project that will most likely have only 2 CRUD operation.

The Pros of using Repository pattern as I can see so far is that I'll be able to do Unit Tests and flexibility (which I think might take years before this project will become a bigger one).

I remember one time from the Laracon video I watched on Youtube, someone (forgot who he is) compared 2 codes. 1 using "Repo" pattern and the other one is not.

He said, though the "Repo" code might be the correct one... does the Developer really needs it?

I would like to know your opinion about this.

Please sign in or create an account to participate in this conversation.