Create Module wise repository
Requires
- nwidart/laravel-modules: >=1.27
Requires (Dev)
- nwidart/laravel-modules: >=1.27
This package is not auto-updated.
Last update: 2025-04-05 20:30:21 UTC
README
First you need to install nWidrat/laravel-modules to create modules in your project.
To create repository fro specific module
Run composer require createmodulewiserepo/repo dev-master
add createmodulewiserepo\repo\Providers\MakeRepositoryServiceProvider::class in your config/app.php file
Run composer dump-autoload
Run php artisan module:make-repository {repositoryName} {moduleName} --model={modelName} --interface={interfaceName}.
Repository name: Name of class of repository
Module Name : Particular module name in which repository will be created.
Repository file will be created in App/Modules//Repositories
Model Name : Model for repository will be injected in specified Repository Constructor
Interface Name : Interface to whom repository will implement.
Model and Interface will be created if they don't exist
Repository and module name are mandatory. Model and interface name are optional.