iftekhar/password-change-notification

A simple package for send email when password is change

1.0.1 2022-09-23 16:44 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require iftekhar/password-change-notification "^1.0.1"

you can change everythink you want here example below

1.For Email Class

    public function passwordChangeNotificationMail(): Mailable
    {
      // Mail Class
        return new SendEmailFor();
    }
  1. The columns will send email when it changes
    public function passwordColumnsName(): string
    {
        return 'password';
    }
  1. User Email Columns
    public function emailColumnsName(): string
    {
        return 'email';
    }
  1. If you want queue mail here this code
    public function passwordChangeShouldBeQueue(): bool
    {
        return true;
    }

Optionally, you can publish the views using

php artisan vendor:publish --tag="password-change-email-views"

Usage

$passwordChangeEmail = new Iftekhar\PasswordChangeEmail();
echo $passwordChangeEmail->echoPhrase('Hello, Iftekhar!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.