����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.191.28.161 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/./gltevjme/bofirm.gltechlimited.com/vendor/laravel/passport/src/Bridge/ |
Upload File : |
<?php namespace Laravel\Passport\Bridge; use Laravel\Passport\Passport; use League\OAuth2\Server\Entities\AuthCodeEntityInterface; use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface; class AuthCodeRepository implements AuthCodeRepositoryInterface { use FormatsScopesForStorage; /** * {@inheritdoc} */ public function getNewAuthCode() { return new AuthCode; } /** * {@inheritdoc} */ public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity) { $attributes = [ 'id' => $authCodeEntity->getIdentifier(), 'user_id' => $authCodeEntity->getUserIdentifier(), 'client_id' => $authCodeEntity->getClient()->getIdentifier(), 'scopes' => $this->formatScopesForStorage($authCodeEntity->getScopes()), 'revoked' => false, 'expires_at' => $authCodeEntity->getExpiryDateTime(), ]; Passport::authCode()->forceFill($attributes)->save(); } /** * {@inheritdoc} */ public function revokeAuthCode($codeId) { Passport::authCode()->where('id', $codeId)->update(['revoked' => true]); } /** * {@inheritdoc} */ public function isAuthCodeRevoked($codeId) { return Passport::authCode()->where('id', $codeId)->where('revoked', 1)->exists(); } }