mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-09 07:28:37 +02:00

Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Co-authored-by: Boy132 <Boy132@users.noreply.github.com> Co-authored-by: Lance Pioch <git@lance.sh>
24 lines
523 B
PHP
24 lines
523 B
PHP
<?php
|
|
|
|
namespace App\Extensions\Laravel\Sanctum;
|
|
|
|
use App\Models\ApiKey;
|
|
use Laravel\Sanctum\NewAccessToken as SanctumAccessToken;
|
|
|
|
/**
|
|
* @property ApiKey $accessToken
|
|
*/
|
|
class NewAccessToken extends SanctumAccessToken
|
|
{
|
|
/**
|
|
* NewAccessToken constructor.
|
|
*
|
|
* @noinspection PhpMissingParentConstructorInspection
|
|
*/
|
|
public function __construct(ApiKey $accessToken, string $plainTextToken)
|
|
{
|
|
$this->accessToken = $accessToken;
|
|
$this->plainTextToken = $plainTextToken;
|
|
}
|
|
}
|