diff --git a/config/onesignal.php b/config/onesignal.php index 878ac73..8eb3448 100644 --- a/config/onesignal.php +++ b/config/onesignal.php @@ -19,5 +19,5 @@ | */ 'rest_api_key' => 'YOUR-REST-API-KEY-HERE', - 'user_auth_key' => 'YOUR-' + 'user_auth_key' => 'YOUR-USER-AUTH-KEY' ); \ No newline at end of file diff --git a/src/OneSignalServiceProvider.php b/src/OneSignalServiceProvider.php index b1698c1..50bca43 100644 --- a/src/OneSignalServiceProvider.php +++ b/src/OneSignalServiceProvider.php @@ -14,13 +14,12 @@ class OneSignalServiceProvider extends ServiceProvider public function boot() { $configPath = __DIR__ . '/../config/onesignal.php'; - $app = $this->app; - - if (class_exists('Illuminate\Foundation\Application') && $app instanceof LaravelApplication && $app->runningInConsole()) { - $this->publishes([$configPath => config_path('onesignal.php')]); - $this->mergeConfigFrom($configPath, 'onesignal'); - } else if ( class_exists('Laravel\Lumen\Application', false) ) { - $app->configure('onesignal'); + + $this->publishes([$configPath => config_path('onesignal.php')]); + $this->mergeConfigFrom($configPath, 'onesignal'); + + if ( class_exists('Laravel\Lumen\Application') ) { + $this->app->configure('onesignal'); } }