Skip to content

Instantly share code, notes, and snippets.

View minhloc2011's full-sized avatar
🎯
Focusing

Lộc minhloc2011

🎯
Focusing
View GitHub Profile
@minhloc2011
minhloc2011 / AccessToken.php
Created October 6, 2022 01:08 — forked from onamfc/AccessToken.php
Add Custom Claims to Passport 8 / Laravel 6
<?php
namespace App\Passport;
use App\User;
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Key;
use League\OAuth2\Server\CryptKey;
use Lcobucci\JWT\Signer\Rsa\Sha256;
use Laravel\Passport\Bridge\AccessToken as BaseToken;