Skip to content

Commit 4b032f0

Browse files
committed
Update Readme.md
1 parent c227dc7 commit 4b032f0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Readme.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ composer require nanvaie/database-repository --dev
77
```
88

99
### Setup for Laravel
10-
Navigate to `AppServiceProvider.php` in `app/Providers` folder and add following code snippet (or it's equivalent) in 'register' function:
11-
```php
12-
// snip
13-
if ($this->app->environment('local', 'testing')) {
14-
$this->app->register(Nanvaie\DatabaseRepository\DatabaseRepositoryServiceProvider::class);
15-
}
16-
// snip
10+
Before publishing assets, add `REPOSITORY_PHP_VERSION` variable to `.env` and set it to your version of choosing. Supported values are: 8.0, 7.4 (Default is 8.0).
11+
12+
Then run following command in console to publish necessary assets in your project directory.
13+
```bash
14+
php artisan vendor:publish --provider=Nanvaie\DatabaseRepository\DatabaseRepositoryServiceProvider
1715
```
1816

1917
### Setup for Lumen

0 commit comments

Comments
 (0)