pineco.de
Writing Repositories Based on Laravel Collections - Pine
Using the repository pattern is a common solution in modern web applications. Let’s take a quick look at how to write a repository based on Laravel’s collection class. What are repositories? So, briefly, repositories are a store where we can perform CRUD actions on its items. We can add a new item to the repository …