⚝
One Hat Cyber Team
⚝
Your IP:
160.79.111.154
Server IP:
162.254.39.145
Server:
Linux premium289.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
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
favoaysf
/
www
/
vendor
/
laravel
/
sanctum
/
src
/
View File Name :
NewAccessToken.php
<?php namespace Laravel\Sanctum; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; class NewAccessToken implements Arrayable, Jsonable { /** * The access token instance. * * @var \Laravel\Sanctum\PersonalAccessToken */ public $accessToken; /** * The plain text version of the token. * * @var string */ public $plainTextToken; /** * Create a new access token result. * * @param \Laravel\Sanctum\PersonalAccessToken $accessToken * @param string $plainTextToken * @return void */ public function __construct(PersonalAccessToken $accessToken, string $plainTextToken) { $this->accessToken = $accessToken; $this->plainTextToken = $plainTextToken; } /** * Get the instance as an array. * * @return array */ public function toArray() { return [ 'accessToken' => $this->accessToken, 'plainTextToken' => $this->plainTextToken, ]; } /** * Convert the object to its JSON representation. * * @param int $options * @return string */ public function toJson($options = 0) { return json_encode($this->toArray(), $options); } }