File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Http/Controllers/Admin/Settings Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 33namespace Pterodactyl \Http \Controllers \Admin \Settings ;
44
55use Exception ;
6- use Illuminate \ Http \ Request ;
7- use Illuminate \ Support \ Facades \ Notification ;
6+
7+
88use Illuminate \View \View ;
9+ use Illuminate \Http \Request ;
910use Illuminate \Http \RedirectResponse ;
1011use Prologue \Alerts \AlertsMessageBag ;
1112use Illuminate \Contracts \Console \Kernel ;
13+ use Pterodactyl \Notifications \MailTested ;
14+ use Illuminate \Support \Facades \Notification ;
1215use Pterodactyl \Exceptions \DisplayException ;
1316use Pterodactyl \Http \Controllers \Controller ;
1417use Illuminate \Contracts \Encryption \Encrypter ;
15- use Pterodactyl \Notifications \MailTested ;
1618use Pterodactyl \Providers \SettingsServiceProvider ;
1719use Illuminate \Contracts \Config \Repository as ConfigRepository ;
1820use Pterodactyl \Contracts \Repository \SettingsRepositoryInterface ;
@@ -129,10 +131,12 @@ public function test(Request $request): RedirectResponse
129131 ->notify (new MailTested ($ request ->user ()));
130132 } catch (Exception $ exception ) {
131133 $ this ->alert ->danger (trans ('base.mail.test_failed ' ))->flash ();
134+
132135 return redirect ()->route ('admin.settings.mail ' );
133136 }
134137
135138 $ this ->alert ->success (trans ('base.mail.test_succeeded ' ))->flash ();
139+
136140 return redirect ()->route ('admin.settings.mail ' );
137141 }
138142}
Original file line number Diff line number Diff line change 22
33namespace Pterodactyl \Notifications ;
44
5- use Illuminate \Notifications \Messages \MailMessage ;
6- use Illuminate \Notifications \Notification ;
75use Pterodactyl \Models \User ;
6+ use Illuminate \Notifications \Notification ;
7+ use Illuminate \Notifications \Messages \MailMessage ;
88
99class MailTested extends Notification
1010{
@@ -13,7 +13,8 @@ class MailTested extends Notification
1313 */
1414 private $ user ;
1515
16- public function __construct (User $ user ) {
16+ public function __construct (User $ user )
17+ {
1718 $ this ->user = $ user ;
1819 }
1920
You can’t perform that action at this time.
0 commit comments