Move code around for simplicity and fix tests.

This commit is contained in:
James Cole
2017-06-07 11:13:04 +02:00
parent 92c5cabd70
commit 8bbd3063ec
14 changed files with 271 additions and 251 deletions

View File

@@ -214,9 +214,9 @@ class User extends Authenticatable
*/
public function sendPasswordResetNotification($token)
{
$ip = Request::ip();
$ipAddress = Request::ip();
event(new RequestedNewPassword($this, $token, $ip));
event(new RequestedNewPassword($this, $token, $ipAddress));
}
/**