Fix bug with demo user check
This commit is contained in:
parent
64a5104906
commit
35169709b5
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
||||||
|
|
||||||
public function isDemoUser()
|
public function isDemoUser()
|
||||||
{
|
{
|
||||||
return $user->email === 'johndoe@example.com';
|
return $this->email === 'johndoe@example.com';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeOrderByName($query)
|
public function scopeOrderByName($query)
|
||||||
|
|
Loading…
Add table
Reference in a new issue