erfanwd / laravel-repository-pattern
A Laravel package to auto-generate repositories and interfaces based on models
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/erfanwd/laravel-repository-pattern
Requires
- php: ^8.0
- illuminate/support: ^10.0|^11.0|^12.0
README
A lightweight Laravel package to generate repository and interface files with automatic binding and provider registration.
📦 Installation
Install the package via Composer:
composer require erfanwd/laravel-repository-pattern
Usage
publish provider using:
php artisan vendor:publish --tag=repository-base
then simply:
php artisan make:repository ModelName
you can use this command for all of your models:
php artisan make:repository --sync