PHP code example of brhn / password-changed-notification
1. Go to this page and download the library: Download brhn/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/ */
brhn / password-changed-notification example snippets
use Brhn\PasswordChangedNotification\Contracts\PasswordChangedNotificationContract;
use Brhn\PasswordChangedNotification\Traits\PasswordChangedTrait;
class User extends Authenticatable implements PasswordChangedNotificationContract
{
use PasswordChangedTrait;
}
public function emailColumnName(): string
{
return 'user_email';
}
public function passwordColumnName(): string
{
return 'user_password';
}
public function nameColumnName(): string
{
return 'user_name';
}
public function nameColumnName(): string
{
return 'full_name';
}
public function passwordChangedNotification(): Mailable
{
return new YourOwnPasswordChangedNotificationMail($this);
}