Skip to content

Commit

Permalink
Fix Missing Publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
SupianIDz committed Sep 23, 2023
1 parent 9be11d6 commit af9a803
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Providers/ImpersonateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,18 @@ public function register() : void
$this->app->singleton(Authorization::class, function () {
return new Authorization;
});

if ($this->app->runningInConsole()) {
$this->registerPublishing();
}
}

/**
* @return void
*/
protected function registerPublishing() : void
{
$this->publishes([__DIR__ . '/../../public' => public_path('vendor/octopyid/impersonate/')], 'impersonate');
$this->publishes([__DIR__ . '/../../config/impersonate.php' => config_path('impersonate.php')], 'impersonate');
}
}

0 comments on commit af9a803

Please sign in to comment.