From 69f0722c798e8e7c716ca23a69fc0efdd524f343 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Wed, 3 Oct 2018 19:42:35 -0300 Subject: [PATCH] Let me know if anyone subscribed during alpha As the project is still alpha, I just want to know if someone subscribed at it using a dummy e-mail address. --- app/Http/Controllers/Auth/RegisterController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 3f78a3f..338a343 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; use App\FlashMessage; +use Mail; class RegisterController extends Controller { @@ -71,7 +72,13 @@ class RegisterController extends Controller 'password' => Hash::make($data['password']), ]); - \Mail::to($user)->send(new Welcome($user)); + Mail::to($user)->send(new Welcome($user)); + + $text = "Share it! New user: {$user->name} ($user->email)"; + Mail::raw($text, function ($message) use ($text) { + $message->to('brunofontes.shareit@mailnull.com'); + $message->subject($text); + }); session()->flash(FlashMessage::PRIMARY, __('Thanks for registering. Please, do not forget to validate your e-mail address.'));