v2.1.0
Added
-
Add new trait
SMartins\PassportMultiauth\HasMultiAuthApiTokens
that uses the Laravel Passport core traitLaravel\Passport\HasApiTokens
. The new trait override the methodscreateToken($name, $scopes = [])
andtokens()
to adapt to MultiAuthentication needs. -
Now to create
Personal Access Token
don't need add paramproviders
on request to route wrapped by middlewareSMartins\PassportMultiauth\Http\Middleware\AddCustomProvider
. Just call the methodcreateToken($name)
using the model instance that uses the new traitSMartins\PassportMultiauth\HasMultiAuthApiTokens
. -
The method
tokens()
now get just the related tokens with model calling.