From 35169709b54a521541e1ee201373b967528fed6e Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Thu, 19 Dec 2019 08:50:26 -0500 Subject: [PATCH] Fix bug with demo user check --- app/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/User.php b/app/User.php index 250f969..dd602dc 100644 --- a/app/User.php +++ b/app/User.php @@ -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)