diff --git a/CHANGELOG.md b/CHANGELOG.md index 98f9364..2d22160 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to `laravel-licenser` will be documented in this file. +### 3.5.1 +- Now publishes the config file + ### 3.5.0 - Added `license:update` Command diff --git a/src/Providers/LicenseServiceProvider.php b/src/Providers/LicenseServiceProvider.php index 41d28ec..e04a800 100644 --- a/src/Providers/LicenseServiceProvider.php +++ b/src/Providers/LicenseServiceProvider.php @@ -14,7 +14,7 @@ class LicenseServiceProvider extends ServiceProvider */ public function register() { - + $this->mergeConfigFrom(__DIR__.'/../config/pipe.php', 'pipe'); } /** @@ -24,6 +24,12 @@ public function register() */ public function boot() { + // Config + $this->publishes([ + __DIR__.'/../config/licenses.php' => base_path('config/licenses.php'), + ]); + + // Migrations if (method_exists($this, 'loadMigrationsFrom')) { $this->loadMigrationsFrom(__DIR__.'/../../migrations'); } else { @@ -32,6 +38,7 @@ public function boot() ], 'migrations'); } + // Commands if ($this->app->runningInConsole()) { $this->commands([ config('licenses.command_update'), // LicenseUpdate