X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/laravel/passport/src
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
laravel
/
passport
/
src
/
📁
..
📄
ApiTokenCookieFactory.php
(2.07 KB)
📄
AuthCode.php
(1.49 KB)
📁
Bridge
📄
Client.php
(4.08 KB)
📄
ClientRepository.php
(5.52 KB)
📁
Console
📁
Events
📁
Exceptions
📁
Guards
📄
HasApiTokens.php
(1.88 KB)
📁
Http
📄
Passport.php
(15.63 KB)
📄
PassportServiceProvider.php
(8.96 KB)
📄
PassportUserProvider.php
(1.81 KB)
📄
PersonalAccessClient.php
(868 B)
📄
PersonalAccessTokenFactory.php
(3.62 KB)
📄
PersonalAccessTokenResult.php
(1.15 KB)
📄
RefreshToken.php
(1.85 KB)
📄
RefreshTokenRepository.php
(1.6 KB)
📄
RouteRegistrar.php
(4.63 KB)
📄
Scope.php
(1.08 KB)
📄
Token.php
(3.38 KB)
📄
TokenRepository.php
(2.93 KB)
📄
TransientToken.php
(610 B)
Editing: RefreshToken.php
<?php namespace Laravel\Passport; use Illuminate\Database\Eloquent\Model; class RefreshToken extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'oauth_refresh_tokens'; /** * Indicates if the IDs are auto-incrementing. * * @var bool */ public $incrementing = false; /** * The "type" of the primary key ID. * * @var string */ protected $keyType = 'string'; /** * The guarded attributes on the model. * * @var array */ protected $guarded = []; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'revoked' => 'bool', ]; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = [ 'expires_at', ]; /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * Get the access token that the refresh token belongs to. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function accessToken() { return $this->belongsTo(Passport::tokenModel()); } /** * Revoke the token instance. * * @return bool */ public function revoke() { return $this->forceFill(['revoked' => true])->save(); } /** * Determine if the token is a transient JWT token. * * @return bool */ public function transient() { return false; } /** * Get the current connection name for the model. * * @return string|null */ public function getConnectionName() { return config('passport.storage.database.connection') ?? $this->connection; } }
Upload File
Create Folder