diff --git a/CHANGELOG.md b/CHANGELOG.md index 7405e67..b3f08dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,4 +10,11 @@ All notable changes to this project will be documented in this file. - Test Updates ## [1.0.2] - 2021-08-29 -- Bug fix \ No newline at end of file +- Bug fix + +## [1.1.0] - 2021-09-08 +- Removed the manual stub generation process +- Added the touhidurabir/laravel-stub-generator package as the stub generator process handler +- Added replaceable feature to repository command +- Bug Fix +- Readme Update \ No newline at end of file diff --git a/README.md b/README.md index 298b8bc..df33aee 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,15 @@ The above command will try to store the repository class to path **App\SomeOther Check the **config** file after publishing at the **config/model-repository.php** to see the default settings configurations . +It is also possible to replace an existing repository file via the command when passing the flag **--replace** + +```bash +php artisan make:repository UserRepository --model=User --replace +``` + +The above command will replace the already exiting **UserRepository.php** at the given path with newly generated one. + +> Be ery carefull of the replacing ability as if your repository class contains any custom code, that will be fully replaced with a newly generated file and those custom changes will be lost. ## Usage The best way to use the repository classes via **Dependency Injection** through the **controller** classes . for example :