Skip to content

Commit

Permalink
Add package autodiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
nbourguig committed Apr 23, 2018
1 parent 8e88975 commit 537498d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ Translating Laravel languages files using a Google Spreadsheet.
$ composer require nikaia/translation-sheet
```

- Add service provider to your 'config/app.php'
- If Laravel version <= 5.4, Add service provider to your 'config/app.php'. For version >= 5.5, package will be auto-discoverd by Laravel.

```php
Nikaia\TranslationSheet\TranslationSheetServiceProvider::class,
```



- Configuration can be done via environments variables, but if you prefer you can override the configuration by publishing the package config file using :

```bash
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,12 @@
"sort-packages": true
},
"minimum-stability": "dev",
"extra": {
"laravel": {
"providers": [
"Nikaia\\TranslationSheet\\TranslationSheetServiceProvider"
]
}
},
"prefer-stable": true
}

0 comments on commit 537498d

Please sign in to comment.