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 343e3ea commit 515cc10Copy full SHA for 515cc10
src/Token.php
@@ -79,7 +79,9 @@ public function user()
79
{
80
$provider = config('auth.guards.api.provider');
81
82
- return $this->belongsTo(config('auth.providers.'.$provider.'.model'));
+ $model = config('auth.providers.'.$provider.'.model');
83
+
84
+ return $this->belongsTo($model, 'user_id', (new $model)->getKeyName());
85
}
86
87
/**
0 commit comments