Skip to content
Laravel package to facilitate the repository design pattern functionality across multiple projects.
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
composer.json
composer.lock

README.md

Laravel Implementation of Repository Pattern

Laravel package to facilitate repository design pattern implementation across multiple projects.

Installation

composer require lazyelephpant/repository

Plain Repository Class

To generate a repository class without a specific model simply run the following command:

php artisan make:repository NameRepository

Model Repository Class

To generate a repository class for a specific model you may specify by defining the --model:

php artisan make:repository NameRepository --model=User
You can’t perform that action at this time.