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 5667fd0a86
commit 69f0722c79
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

View File

@ -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.'));