Skip to content

Commit

Permalink
Now publishes the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Mar 13, 2018
1 parent 0551e18 commit 5ee4e1e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion src/Providers/LicenseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LicenseServiceProvider extends ServiceProvider
*/
public function register()
{

$this->mergeConfigFrom(__DIR__.'/../config/pipe.php', 'pipe');
}

/**
Expand All @@ -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 {
Expand All @@ -32,6 +38,7 @@ public function boot()
], 'migrations');
}

// Commands
if ($this->app->runningInConsole()) {
$this->commands([
config('licenses.command_update'), // LicenseUpdate
Expand Down

0 comments on commit 5ee4e1e

Please sign in to comment.