From 5ee4e1e22642af5f6c47747f097880d529ad6d9d Mon Sep 17 00:00:00 2001 From: Tyler Arbon Date: Mon, 12 Mar 2018 21:20:30 -0600 Subject: [PATCH] Now publishes the config file --- CHANGELOG.md | 3 +++ src/Providers/LicenseServiceProvider.php | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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