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.
This commit is contained in:
Bruno F. Fontes 2018-10-03 19:42:35 -03:00
parent c39c69d81f
commit a85b971ec5

View File

@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Foundation\Auth\RegistersUsers;
use App\FlashMessage; use App\FlashMessage;
use Mail;
class RegisterController extends Controller class RegisterController extends Controller
{ {
@ -71,7 +72,13 @@ class RegisterController extends Controller
'password' => Hash::make($data['password']), '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.')); session()->flash(FlashMessage::PRIMARY, __('Thanks for registering. Please, do not forget to validate your e-mail address.'));