Fix bug with demo user check
This commit is contained in:
parent
64a5104906
commit
35169709b5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue