mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-27 13:21:26 +00:00
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:
parent
c39c69d81f
commit
a85b971ec5
@ -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.'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user