How to registration welcome email laravel (PHP Scripting Language)

Asked by: Lennon Kirchner
Edit Question Icon
Edit
Follow Icon
Report Icon
Report

Explain Below What Do You Want to report!


Available Answers: 3

Aaron Balooni (SCRAPPER Market Research) From: Ghaziabad/India
1
MAIL_DRIVER=smtp
2
MAIL_HOST=smtp.mailtrap.io
3
MAIL_PORT=2525
4
MAIL_USERNAME=48664********
5
MAIL_PASSWORD=6cfa6********
Upvote Icon9
Comment IconComment
Follow Icon
Report IconReport

Explain Below What Do You Want to report!


Explain Below What Do You Want to comment!


Maniya Ganesh (TRANSMISSION TESTER Business Requirements, Information Management, Pr) From: Plymouth/South West, England
1
use Illuminate\Support\Facades\Mail;
2
protected function create(array $data)
3
{
4
    $user = User::create([
5
        'name' => $data['name'],
6
        'email' => $data['email'],
7
        'password' => Hash::make($data['password']),
8
    ]);
9
    // email data
10
    $email_data = array(
11
        'name' => $data['name'],
12
        'email' => $data['email'],
13
    );
14
    // send email with the template
15
    Mail::send('welcome_email', $email_data, function ($message) use ($email_data) {
16
        $message->to($email_data['email'], $email_data['name'])
17
            ->subject('Welcome to MyNotePaper')
18
            ->from('info@mynotepaper.com', 'MyNotePaper');
19
    });
20
    return $user;
21
}
Upvote Icon5
Comment IconComment
Follow Icon
Report IconReport

Explain Below What Do You Want to report!


Explain Below What Do You Want to comment!


Aham Ghuman (SUPERVISOR ASBESTOS TEXTILE Experiments, Investigations) From: Kozhikode/India
1
Hello {{ $name }},<br><br>
2
Welcome to MyNotePaper.<br><br>
3
Thank You,<br>
4
MyNotepaper
Upvote Icon5
Comment IconComment
Follow Icon
Report IconReport

Explain Below What Do You Want to report!


Explain Below What Do You Want to comment!




More Questions



Would you like to join Ask Sawal!

Why?

  1. Ask Sawal is a fast growing question and answer discussion forum.

  2. 15 lakh+ questions were answered by our Ask Sawal Members.

  3. Each day 1000s of questions asked & 1000s of questions answered.

  4. Ask any question and get answer from 2.5 Lakh+ Ask Sawal Members.

  5. Constant moderation and reporting option makes questions and answers spam free.

  6. And also, we have free blogging platform. Write an article on any topic.

  7. We have 10000+ visitors each day. So a beneficial platform for link building.

  8. We are allowing link sharing. Create backlinks to your blog site or any site.

  9. Gain extra passive income by sharing your affiliate links in articles and answers.