We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bcd72 commit 16b792bCopy full SHA for 16b792b
src/Models/WpUserMeta.php
@@ -9,11 +9,6 @@ class WpUserMeta extends Model
9
{
10
use HasFactory;
11
12
- public function user()
13
- {
14
- return $this->belongsTo(WpUser::class, 'ID');
15
- }
16
-
17
protected $fillable = ['user_id', 'meta_key', 'meta_value'];
18
19
protected $searchableFields = ['*'];
@@ -33,8 +28,8 @@ public function __construct(array $attributes = [])
33
28
$this->table = $this->wpPrefix.'usermeta';
34
29
}
35
30
36
- public function userMeta()
31
+ public function user()
37
32
38
- return $this->hasMany(WpUserMeta::class, 'user_id');
+ return $this->belongsTo(WpUser::class, 'ID');
39
40
0 commit comments