Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
berkayk committed Jan 31, 2017
1 parent bd33a3c commit 48d0596
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ Then, register class alias by adding an entry in aliases section
];
```

Finally, from the command line again, run `php artisan vendor:publish` to publish the default configuration file.

Finally, from the command line again, run

```
php artisan vendor:publish --tag=config
```

to publish the default configuration file.
This will publish a configuration file named `onesignal.php` which includes your OneSignal authorization keys.

> **Note:** If the previous command does not publish the config file successfully, please check the steps involving *providers* and *aliases* in the `config/app.php` file.

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion src/OneSignalServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function boot()
{
$configPath = __DIR__ . '/../config/onesignal.php';

$this->publishes([$configPath => config_path('onesignal.php')]);
$this->publishes([$configPath => config_path('onesignal.php')], 'config');
$this->mergeConfigFrom($configPath, 'onesignal');

if ( class_exists('Laravel\Lumen\Application') ) {
Expand Down

0 comments on commit 48d0596

Please sign in to comment.