{"repo":"salehhashemi1992/laravel-repository","free":true,"listed":false,"github":"https://github.com/salehhashemi1992/laravel-repository","clone":"git clone https://github.com/salehhashemi1992/laravel-repository.git","description":"A Laravel package to abstract the database layer, simplifying application maintenance.","language":"PHP","stars":20,"topics":["laravel","database","database-layer","laravel-package","php","repository","repository-pattern","laravel-repository","laravel-repository-pattern"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel Repository Pattern This Laravel package simplifies and streamlines data access by implementing the repository pattern. It provides a powerful abstraction layer for your database interactions, enhanced with flexible filtering, searching, and criteria-based querying. Features Repository Abstraction: Decouples data access logic from application code. Dynamic Filtering: Apply filters to refine database queries. Criteria-Based Filtering: Define reusable criteria for common query constraints. Search Functionality: Implement custom search logic based on user input. Modular Repository Interface: Enforces consistency and maintainability. Ease of Integration: Seamlessly integrates with Laravel applications. Development Tools: Automate repository, interface, and filter creation with the make:repository command. Installation To install the package, you can run the following command: Compatibility - Laravel 12.x , 13.x - PHP 8.2+ Development Tools The package includes a helpful command to speed up your development workflow: make:repository This command automates the creation of the following components for a specified model: Repository Class Repository Interface Filter Class Usage Example: or Example Usage Practical example of how to use this package to manage and interact with a Post model. It includes examples of a custom repository, filter, criteria, and controller usage. Post Repository The PostRepository class extends BaseEloquentRepository and demonstrates the use of the pac","default_branch":null,"files":null,"tree":[],"storefront":"/r/salehhashemi1992","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/salehhashemi1992/laravel-repository/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}