Fix bug with demo user check

This commit is contained in:
Jonathan Reinink 2019-12-19 08:50:26 -05:00
parent 64a5104906
commit 35169709b5
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
public function isDemoUser()
{
return $user->email === 'johndoe@example.com';
return $this->email === 'johndoe@example.com';
}
public function scopeOrderByName($query)