Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Models/RecoveryToken.php
7432 views
1
<?php
2
3
namespace Pterodactyl\Models;
4
5
use Illuminate\Database\Eloquent\Relations\BelongsTo;
6
7
/**
8
* @property int $id
9
* @property int $user_id
10
* @property string $token
11
* @property \Carbon\CarbonImmutable $created_at
12
* @property User $user
13
*/
14
class RecoveryToken extends Model
15
{
16
/**
17
* There are no updates to this model, only inserts and deletes.
18
*/
19
public const UPDATED_AT = null;
20
21
public $timestamps = true;
22
23
protected bool $immutableDates = true;
24
25
public static array $validationRules = [
26
'token' => 'required|string',
27
];
28
29
public function user(): BelongsTo
30
{
31
return $this->belongsTo(User::class);
32
}
33
}
34
35