@@ -23,7 +23,7 @@ public function boot()
2323 $ this ->bootMailable ();
2424
2525 if ($ this ->app ->runningInConsole ()) {
26- View::addNamespace ('helo ' , __DIR__ . '/../resources/views ' );
26+ View::addNamespace ('helo ' , __DIR__ . '/../resources/views ' );
2727 }
2828 }
2929
@@ -38,11 +38,11 @@ public function register()
3838 ]);
3939
4040 $ this ->publishes ([
41- __DIR__ . '/../config/helo.php ' => base_path ('config/helo.php ' ),
41+ __DIR__ . '/../config/helo.php ' => base_path ('config/helo.php ' ),
4242 ], 'config ' );
4343 }
4444
45- $ this ->mergeConfigFrom (__DIR__ . '/../config/helo.php ' , 'helo ' );
45+ $ this ->mergeConfigFrom (__DIR__ . '/../config/helo.php ' , 'helo ' );
4646
4747 $ this ->app ->singleton (Mailer::class, function ($ app ) {
4848 $ version = $ this ->version ($ app );
@@ -65,15 +65,11 @@ public function register()
6565
6666 protected function bootMailable ()
6767 {
68- if ($ this ->version () < 10 ) {
69- $ instance = app ()->make (Mailer::class);
68+ $ instance = app ()->make (Mailer::class);
7069
71- Mail::swap ($ instance );
70+ Mail::swap ($ instance );
7271
73- $ this ->app ->instance (MailerContract::class, $ instance );
74- } else {
75- Mail::swap (new MailManager ($ this ->app ));
76- }
72+ $ this ->app ->instance (MailerContract::class, $ instance );
7773 }
7874
7975 private function version ($ app = null ): int
0 commit comments