call to $this-> assertValidPassword from static context

This commit is contained in:
Daniel Klabbers 2015-09-04 00:00:24 +02:00
parent f0c240f863
commit 0413daab74

View File

@ -150,7 +150,7 @@ class User extends Model
{
$user = new static;
$this->assertValidPassword($password);
$user->assertValidPassword($password);
$user->username = $username;
$user->email = $email;