myw / modelrepository
This is an internal model repository package being used for development for the shopify applications.
dev-master
2021-02-12 07:35 UTC
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2024-09-12 15:49:37 UTC
README
This is an internal package for Mind Yer Website, that will create the commands for creating the base and model repository classes that is commonly used in shopify projects.
Installation
Via Composer
$ composer require myw/modelrepository
Configuration
Add in the config/app.php in the providers array
Myw\ModelRepository\ModelRepositoryServiceProvider::class
Usage
This will create two console commands for creating the required files for using a repository pattern for the application, all files will be under App\Repositories folder.
This command will create the specific base repository:
$ php artisan make:base-repository
This command will create the specific repository class for the model:
$ php artisan make:model-repository {name : Model(Singular)}