Skip to content

Commit f0b60f5

Browse files
committed
fix(config): set correct key on service provider
1 parent ec5fbee commit f0b60f5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ A Laravel package that allows you to assign settings to your models.
66
[![GitHub license](https://img.shields.io/github/license/CodeTechPt/laravel-model-settings?style=flat-square)](https://github.com/CodeTechPt/laravel-model-settings/blob/master/LICENSE)
77

88

9-
## Installation
9+
## Installation & setup
1010

1111
Add the package to your Laravel app using composer
1212

1313
```
1414
composer require codetech/laravel-model-settings
1515
```
1616

17+
For changing migrations and configurations, you will need to publish both files by running the following Artisan command:
18+
19+
```
20+
php artisan vendor:publish --provider="CodeTech\ModelSettings\Providers\ModelSettingsServiceProvider"
21+
```
22+
1723

1824
### Service Provider
1925

src/Providers/ModelSettingsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ModelSettingsServiceProvider extends ServiceProvider
1616
public function register()
1717
{
1818
$this->mergeConfigFrom(
19-
__DIR__ . '/../config/model-settings.php', 'settingable'
19+
__DIR__ . '/../config/model-settings.php', 'model-settings'
2020
);
2121
}
2222

0 commit comments

Comments
 (0)