bfg/repository

Missing repositories for Eloquent models Laravel

Installs: 13 129

Dependents: 4

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:bfg-app

1.3.1 2024-02-03 00:01 UTC

This package is auto-updated.

Last update: 2024-03-03 00:10:05 UTC


README

Package To add the functionality of the repository pattern and its generator.

Install

composer require bfg/repository

Usage

Make repository

php artisan make:repository
Options:
      --methods[=METHODS]  Methods for repository (multiple values allowed)
  -m, --model[=MODEL]      Model of repository
  -f, --force              Create the class even if the repository already exists

Next step

After generating the repository you will appear in the app/Repositories folder. And then you can add your methods to the created repository.