PHP code example of musahmusah / password-change-notification

1. Go to this page and download the library: Download musahmusah/password-change-notification library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

musahmusah / password-change-notification example snippets


return [
    'queue-notification-mail' => false,
];

use MusahMusah\PasswordChangeNotification\Contracts\PasswordChangedNotificationContract;
use MusahMusah\PasswordChangeNotification\Traits\ObservePasswordChangeMail;

class User extends Authenticatable implements PasswordChangedNotificationContract
{
    use ObservePasswordChangeMail;
}

public function emailColumnName(): string
{
    return 'user_email';
}

public function passwordColumnName(): string
{
    return 'user_password';
}

public function nameColumnName(): string
{
    return 'full_name';
}
bash
php artisan vendor:publish --tag="password-change-notification-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="password-change-notification-config"
bash
php artisan vendor:publish --tag="password-change-notification-views"