You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Models/OAuthToken.php

53 lines
2.0 KiB
PHTML

6 months ago
<?php
namespace App\Models;
4 days ago
use Illuminate\Support\Carbon;
use Laravel\Passport\Client;
use Laravel\Passport\RefreshToken;
6 months ago
use Laravel\Passport\Token as PassportToken;
4 days ago
/**
* @property string $id
* @property int|null $user_id
* @property int $client_id
* @property string|null $name
* @property array<array-key, mixed>|null $scopes
* @property bool $revoked
4 days ago
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Carbon|null $expires_at
* @property-read Client|null $client
* @property-read RefreshToken|null $refreshToken
*
4 days ago
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken existsIn(array $haystack)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereClientId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereExpiresAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereRevoked($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereScopes($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|OAuthToken whereUserId($value)
4 days ago
*
4 days ago
* @mixin \Eloquent
*/
6 months ago
class OAuthToken extends PassportToken
{
protected $visible = [
'id',
'user_id',
'client_id',
'name',
'scopes',
'revoked',
'created_at',
'updated_at',
'expires_at',
];
}