Closed reymondkao closed 5 years ago
@reymondkao Please, what’s the package, laravel and laravel passport versions? Are you sure that migrate all packages tables?
"require": { "laravel/framework": "5.8.*", "laravel/passport": "^7.4", "smartins/passport-multiauth": "^4.1" } I have executed migrate user account and token in different database Passport::tokenModel() fix the error
@reymondkao Thanks. If you need I am available
use Laravel\Passport\Passport;
trait HasMultiAuthApiTokens /**
{"result":"error","message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.oauth_access_tokens' doesn't exist (SQL: select
oauth_access_tokens
.* fromoauth_access_tokens
inner joinoauth_access_token_providers
onoauth_access_tokens
.id
=oauth_access_token_id
andoauth_access_token_providers
.provider
= customers whereoauth_access_tokens
.user_id
= 21 andoauth_access_tokens
.user_id
is not null order bycreated_at
desc)"}