PHP code example of asdh / password-changed-notification

1. Go to this page and download the library: Download asdh/password-changed-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/ */

    

asdh / password-changed-notification example snippets


use Asdh\PasswordChangedNotification\Contracts\PasswordChangedNotificationContract;
use Asdh\PasswordChangedNotification\Traits\PasswordChangedNotificationTrait;

class User extends Authenticatable implements PasswordChangedNotificationContract
{
    use PasswordChangedNotificationTrait;
}

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

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

public function nameColumnName(): string
{
    return 'full_name';
}

public function passwordChangedNotificationMail(): Mailable
{
    return new YourOwnPasswordChangedNotificationMail($this);
}
bash
php artisan vendor:publish --tag="password-changed-notification-views"