About 376,000 results
Open links in new tab
  1. Understanding PHP Repository Pattern: A Beginner’s Guide

    Dec 21, 2024 · The Repository Pattern is a powerful tool for organizing your Laravel application’s data access layer. By implementing this pattern, you’ll create more maintainable, testable, and flexible code.

  2. Proper Repository Pattern Design in PHP? - Stack Overflow

    My Repository is database agnostic; in fact it doesn't specify any persistence; it could be anything: SQL database, xml file, remote service, an alien from outer space etc. For searching capabilities, the Repository constructs an Selector which can be filtered, LIMIT -ed, sorted and counted.

  3. The infamous Repository Pattern in PHP | doeken.org

    Jan 25, 2024 · In this post we're going to look at the repository pattern; what it is and what it is not. We'll also look at the differences between read and write repositories and some conventions. What is the Repository Pattern? The repository pattern is a data source abstraction that behaves like a collection; containing domain (value) objects.

  4. How and why implement the repository pattern in PHP - Inspector

    Jun 29, 2021 · How to implement the Repository Pattern in PHP to build a cache layer in front of the SQL database. Inspector real implementation.

  5. Proper Repository Pattern Design in PHP? - Medium

    Use a Repository to handle all database operations. Use an Interface to define methods that all repositories must implement. Use a Service or Controller to interact with repositories.

  6. The Service / Repository Pattern | The Long Walk

    Jan 21, 2023 · What is the Service / Repository Pattern? The idea of this pattern is that your code (top level code) should be completely ignorant of the business and data layers of your application. That is, if you’re retrieving a sales order, your code should ideally look something like this:

  7. Laravel Repository Pattern – PHP Design Pattern - ASPER …

    Sep 10, 2022 · How to implement a PHP Repository Pattern in Laravel? What’s important – Why do we need a design pattern? A repository is a separation between a domain and a persistent layer. The repository provides a collection interface to access data stored in a database, file system, or external service. Data is returned in the form of objects.

  8. Implement the Repository Pattern in PHP | Graham Sutton

    Mar 15, 2023 · Learn how to implement the repository pattern in PHP in a clean and testable way.

  9. PHP Laravel Repository Pattern - Medium

    Apr 2, 2023 · In this article, we will discuss how to implement the Repository Pattern in Laravel. The Repository Pattern in Laravel consists of three main components: The Repository Interface: This...

  10. Laravel: Service/Repository Pattern and duplicating code

    Jun 9, 2016 · In my project I have decided to use the Service Pattern (Possibly with the Repository Pattern) to deal with the business logic in my application. I have for example a Client model which represents a customer and a corresponding ClientService that is responsible for client-specific business logic.

  11. Some results have been removed
Refresh