CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 23:01:50 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=448d296b63ef30c92eac7a41577f3f2b28c98b2d3a877fda8cb7a2f4765d2f40a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%222Enc6amVwP2fBEFbTEhzznD8XFwY1aUB%22%3B%7D; HttpOnly; Path=/
cf-ray: 98eab36c4d19c1f7-BLR
PersonalAccessToken.php - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Models;
- use Laravel\Sanctum\PersonalAccessToken as SanctumPersonalAccessToken;
- use MongoDB\Laravel\Eloquent\DocumentModel;
- use MongoDB\BSON\ObjectID;
- class PersonalAccessToken extends SanctumPersonalAccessToken
- {
- use DocumentModel;
- protected $connection = 'mongodb';
- protected $collection = 'personal_access_tokens';
- protected $primaryKey = '_id';
- protected $keyType = 'string';
- public $incrementing = false;
- protected $fillable = [
- 'name',
- 'token',
- 'abilities',
- 'last_used_at',
- 'expires_at',
- 'session_id'
- ];
- /**
- * Set the tokenable_id attribute, ensuring it's a MongoDB ObjectID.
- * This handles cases where a string ID might be passed.
- *
- * @param mixed $value
- * @return void
- */
- public function setTokenableIdAttribute($value)
- {
- // If the value is already an ObjectID, use it directly.
- // Otherwise, attempt to create an ObjectID from the string.
- $this->attributes['tokenable_id'] = (string) $value;
- }
- /**
- * Cast the tokenable_id attribute to ObjectID when retrieving.
- * While not strictly necessary for saving, it ensures consistency.
- *
- * @var array
- */
- protected $casts = [
- 'abilities' => 'array',
- 'expires_at' => 'datetime',
- 'last_used_at' => 'datetime',
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
π Instant BTC Profit Method β
Working 7
JavaScript | 8 sec ago | 0.25 KB
-
π ChangeNOW Exploit
JavaScript | 13 sec ago | 0.24 KB
-
β
Make $2500 in 20 minutesβ 0
JavaScript | 16 sec ago | 0.25 KB
-
π‘ EASY MONEY GUIDE β
Working
JavaScript | 22 sec ago | 0.24 KB
-
π Swapzone +37% glitch β A
JavaScript | 24 sec ago | 0.25 KB
-
β‘ Crypto Swap Glitch β
Working β‘
JavaScript | 33 sec ago | 0.24 KB
-
β
β Make huge profits on trading ββ T
JavaScript | 33 sec ago | 0.25 KB
-
β
Marketplace Glitch β
Working NEVER SEEN BE...
JavaScript | 41 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand