*Create Listener in 'AppListeners'
<?php
namespace AppListeners;
use AppPasswordHistory;
use IlluminateAuthEventsPasswordReset;
class ResetPasswordListener
{
public function handle(PasswordReset $passwordReset)
{
$passwordHistory = PasswordHistory::create([
'user_id' => $passwordReset->user->id,
'password' => $passwordReset->user->password
]);
}
}
*Add this to $listen in 'AppProvidersEventServiceProvider.php'
'IlluminateAuthEventsPasswordReset' => [
'AppListenersResetPasswordListener'
]