fix dirname depth

This commit is contained in:
2022-05-14 18:26:08 +02:00
parent 377dc53037
commit e902a3a5b8

View File

@@ -23,7 +23,7 @@ class BitinflowAccountsServiceProvider extends ServiceProvider
public function boot() public function boot()
{ {
$this->publishes([ $this->publishes([
dirname(__DIR__, 4) . '/config/bitinflow-accounts.php' => config_path('bitinflow-accounts.php'), dirname(__DIR__, 3) . '/config/bitinflow-accounts.php' => config_path('bitinflow-accounts.php'),
], 'config'); ], 'config');
} }
@@ -34,7 +34,7 @@ class BitinflowAccountsServiceProvider extends ServiceProvider
*/ */
public function register() public function register()
{ {
$this->mergeConfigFrom(dirname(__DIR__, 4) . '/config/bitinflow-accounts.php', 'bitinflow-accounts'); $this->mergeConfigFrom(dirname(__DIR__, 3) . '/config/bitinflow-accounts.php', 'bitinflow-accounts');
$this->app->singleton(BitinflowAccounts::class, function () { $this->app->singleton(BitinflowAccounts::class, function () {
return new BitinflowAccounts; return new BitinflowAccounts;
}); });