Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Md. Touhidur Rahman authored and Md. Touhidur Rahman committed Sep 8, 2021
1 parent 668d760 commit c0ac908
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down

0 comments on commit c0ac908

Please sign in to comment.