diff --git a/src/Packages/Starter/app/Models/UserMeta.php b/src/Packages/Starter/app/Models/UserMeta.php index 152765f..b1a2fc2 100644 --- a/src/Packages/Starter/app/Models/UserMeta.php +++ b/src/Packages/Starter/app/Models/UserMeta.php @@ -35,7 +35,7 @@ class UserMeta extends Model */ public function user() { - return User::where('id', $this->user_id)->first(); + return $this->belongsTo(User::class); } }