database/seeders/MailTemplateSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        MailTemplate::create([
            "subject" => "Welcome to {app.name}.",
            "purpose" => "To be sent when user registers and verification is disabled.",
            "code" => "registration-welcome-mail",
            "content" => "## Welcome to {app.name}
You are successfully registered with us,
please login to start using our platform.
### Registered account details
Name: {name} {br}
Username: {username} {br}
Email: **{email}** {br}
Password: `your selected password` {br}",
        ]);
        MailTemplate::create([
            "subject" => "Welcome to {app.name}.",
            "purpose" => "To be sent when user registers and verification is enabled.",
            "code" => "registration-email-verification-mail",
            "content" => "## Welcome to {app.name} Please verify your email: {email}
You are successfully registered with us please verify your email
to continue using our platform.
### Registered account details
Name: {name} {br}
Username: {username} {br}
Email: **{email}** {br}
Password: `your selected password` {br}
Verification Link: [Verify now]({verify_link}) {br}
Or
You can click below link to verify your account.
<{verify_link}>",
        ]);
        MailTemplate::create([
            "subject" => "Welcome to {app.name}.",
            "purpose" => "To be sent when user registers and verification is enabled with OTP method typically it will be for api auth.",
            "code" => "registration-email-verification-with-otp-mail",
            "content" => "## Welcome to {app.name} Please verify your email: {email}
You are successfully registered with us please verify your email
to continue using our platform.
### Registered account details
Name: {name} {br}
Username: {username} {br}
Email: **{email}** {br}
Password: `your selected password` {br}
Verification Code: **{otp}**
Enter above **OTP** in the verification screen and verify your account.
",
        ]);
        MailTemplate::create([
            "subject" => "Verify your email.",
            "purpose" => "To be sent when user request for email verification manually.",
            "code" => "email-verification-mail",
            "content" => "## Verify your email: {email}
We received a verification request for the account associated with
email- **{email}** please click the link below to verify your account.
Verification Link: [Verify now]({verify_link}) {br}
Or
You can click below link to verify your account.
<{verify_link}>
### If this was not you who requested the verification please ignore this mail.
",
        ]);
        MailTemplate::create([
            "subject" => "Verify your email.",
            "purpose" => "To be sent when user request for email verification manually with OTP method.",
            "code" => "email-verification-otp-mail",
            "content" => "## Verify your email: {email}
We received a verification request for the account associated with
email- **{email}** please use verification given below to verify your account.
Verification Code: **{otp}**
### If this was not you who requested the verification please ignore this mail.
",
        ]);
        MailTemplate::create([
            "subject" => "Email verified successfully.",
            "purpose" => "To be sent when email verification completed successfully.",
            "code" => "email-verification-success-mail",
            "content" => "## Email verified successfully
Congratulations your account verified successfully
now you can login and use our platform.
[Login Now]({login_link})
",
        ]);
    }
public function run ( ) { MailTemplate :: create ( [ " subject " => " Welcome to {app.name}. " , " purpose " => " To be sent when user registers and verification is disabled. " , " code " => " registration-welcome-mail " , " content " => " ## Welcome to {app.name}

You are successfully registered with us,
please login to start using our platform.

### Registered account details

Name: {name} {br}
Username: {username} {br}
Email: **{email}** {br}
Password: `your selected password` {br} " , ] ) ; MailTemplate :: create ( [ " subject " => " Welcome to {app.name}. " , " purpose " => " To be sent when user registers and verification is enabled. " , " code " => " registration-email-verification-mail " , " content " => " ## Welcome to {app.name} Please verify your email: {email}

You are successfully registered with us please verify your email
to continue using our platform.

### Registered account details

Name: {name} {br}
Username: {username} {br}
Email: **{email}** {br}
Password: `your selected password` {br}

Verification Link: [Verify now]({verify_link}) {br}

Or

You can click below link to verify your account.
<{verify_link}> " , ] ) ; MailTemplate :: create ( [ " subject " => " Welcome to {app.name}. " , " purpose " => " To be sent when user registers and verification is enabled with OTP method typically it will be for api auth. " , " code " => " registration-email-verification-with-otp-mail " , " content " => " ## Welcome to {app.name} Please verify your email: {email}

You are successfully registered with us please verify your email
to continue using our platform.

### Registered account details

Name: {name} {br}
Username: {username} {br}
Email: **{email}** {br}
Password: `your selected password` {br}

Verification Code: **{otp}**

Enter above **OTP** in the verification screen and verify your account.

 " , ] ) ; MailTemplate :: create ( [ " subject " => " Verify your email. " , " purpose " => " To be sent when user request for email verification manually. " , " code " => " email-verification-mail " , " content " => " ## Verify your email: {email}

We received a verification request for the account associated with
email- **{email}** please click the link below to verify your account.

Verification Link: [Verify now]({verify_link}) {br}

Or

You can click below link to verify your account.
<{verify_link}>

### If this was not you who requested the verification please ignore this mail.

 " , ] ) ; MailTemplate :: create ( [ " subject " => " Verify your email. " , " purpose " => " To be sent when user request for email verification manually with OTP method. " , " code " => " email-verification-otp-mail " , " content " => " ## Verify your email: {email}

We received a verification request for the account associated with
email- **{email}** please use verification given below to verify your account.

Verification Code: **{otp}**

### If this was not you who requested the verification please ignore this mail.

 " , ] ) ; MailTemplate :: create ( [ " subject " => " Email verified successfully. " , " purpose " => " To be sent when email verification completed successfully. " , " code " => " email-verification-success-mail " , " content " => " ## Email verified successfully

Congratulations your account verified successfully
now you can login and use our platform.

[Login Now]({login_link})

 " , ] ) ; }
Run the database seeds.
Run the database seeds .
/**
         * Create registration welcome template
         */ /**
         * Create registration email verification template
         */ /**
         * Create registration email verification by OTP template
         */ /**
         * Create email verification template
         */ /**
         * Create email verification OTP template
         */ /**
         * Create email verification success template
         */