Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 61c307b

Browse files
authored
Merge pull request #16 from simonbuehler/simonbuehler-patch-1
2 parents 88d567e + eeb4cc4 commit 61c307b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/TrashmailRuleServiceProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,24 @@ public function boot(): void
3535
RequestOptions::ALLOW_REDIRECTS => true,
3636
RequestOptions::HTTP_ERRORS => true,
3737
]);
38+
39+
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'trashmailRule');
3840
}
3941

4042
public function register(): void
4143
{
4244
$this->app->singleton(TrashmailManager::class);
4345

4446
$this->app->singleton(Trashmail::class);
47+
48+
$this->mergeConfigFrom(__DIR__.'/../config/trashmail.php', 'trashmail');
4549
}
4650

4751
protected function bootConfig(): void
4852
{
4953
$this->publishes([
5054
__DIR__.'/../config/trashmail.php' => config_path('trashmail.php'),
51-
], 'config');
52-
53-
$this->mergeConfigFrom(__DIR__.'/../config/trashmail.php', 'trashmail');
55+
], 'config');
5456
}
5557

5658
protected function bootLang(): void
@@ -59,6 +61,5 @@ protected function bootLang(): void
5961
__DIR__.'/../resources/lang' => resource_path('lang/vendor/trashmailRule'),
6062
], 'lang');
6163

62-
$this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'trashmailRule');
6364
}
6465
}

0 commit comments

Comments
 (0)