Skip to content

Commit 5a5c0cf

Browse files
author
Jordan Hoff
committed
Set actingAsClient token client as proper relationship
1 parent 9f4b881 commit 5a5c0cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Passport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ public static function actingAsClient($client, $scopes = [])
419419
{
420420
$token = app(self::tokenModel());
421421

422-
$token->client = $client;
422+
$token->client_id = $client->id;
423+
$token->setRelation('client', $client);
423424
$token->scopes = $scopes;
424425

425426
$mock = Mockery::mock(ResourceServer::class);

0 commit comments

Comments
 (0)