We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ae6df8 + 11634b4 commit 26c1109Copy full SHA for 26c1109
src/HeloLaravelServiceProvider.php
@@ -26,6 +26,10 @@ public function boot()
26
Mail::swap($instance);
27
28
app()->instance(MailerContract::class, $instance);
29
+
30
+ if ($this->app->runningInConsole()) {
31
+ View::addNamespace('helo', __DIR__ . '/../resources/views');
32
+ }
33
}
34
35
/**
@@ -37,9 +41,7 @@ public function register()
37
41
$this->commands([
38
42
TestMailCommand::class,
39
43
]);
40
-
- View::addNamespace('helo', __DIR__ . '/../resources/views');
44
45
$this->publishes([
46
__DIR__.'/../config/helo.php' => base_path('config/helo.php'),
47
], 'config');
0 commit comments