Skip to content

Commit 54339c1

Browse files
committed
Add property information to common models
1 parent b99ea53 commit 54339c1

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

app/Models/Node.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@
55
use Illuminate\Notifications\Notifiable;
66
use Pterodactyl\Models\Traits\Searchable;
77

8+
/**
9+
* @property int $id
10+
* @property bool $public
11+
* @property string $name
12+
* @property string $description
13+
* @property int $location_id
14+
* @property string $fqdn
15+
* @property string $scheme
16+
* @property bool $behind_proxy
17+
* @property bool $maintenance_mode
18+
* @property int $memory
19+
* @property int $memory_overallocate
20+
* @property int $disk
21+
* @property int $disk_overallocate
22+
* @property int $upload_size
23+
* @property string $daemonSecret
24+
* @property int $daemonListen
25+
* @property int $daemonSFTP
26+
* @property string $daemonBase
27+
* @property \Carbon\Carbon $created_at
28+
* @property \Carbon\Carbon $updated_at
29+
*
30+
* @property \Pterodactyl\Models\Location $location
31+
* @property \Pterodactyl\Models\Server[]|\Illuminate\Support\Collection $servers
32+
* @property \Pterodactyl\Models\Allocation[]|\Illuminate\Support\Collection $allocations
33+
*/
834
class Node extends Validable
935
{
1036
use Notifiable, Searchable;

app/Models/User.php

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,31 @@
1616
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
1717
use Pterodactyl\Notifications\SendPasswordReset as ResetPasswordNotification;
1818

19+
/**
20+
* @property int $id
21+
* @property string|null $external_id
22+
* @property string $uuid
23+
* @property string $username
24+
* @property string $email
25+
* @property string|null $name_first
26+
* @property string|null $name_last
27+
* @property string $password
28+
* @property string|null $remeber_token
29+
* @property string $language
30+
* @property bool $root_admin
31+
* @property bool $use_totp
32+
* @property string|null $totp_secret
33+
* @property \Carbon\Carbon|null $totp_authenticated_at
34+
* @property bool $gravatar
35+
* @property \Carbon\Carbon $created_at
36+
* @property \Carbon\Carbon $updated_at
37+
*
38+
* @property string $name
39+
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Support\Collection $permissions
40+
* @property \Pterodactyl\Models\Server[]|\Illuminate\Support\Collection $servers
41+
* @property \Pterodactyl\Models\Subuser[]|\Illuminate\Support\Collection $subuserOf
42+
* @property \Pterodactyl\Models\DaemonKey[]|\Illuminate\Support\Collection $keys
43+
*/
1944
class User extends Validable implements
2045
AuthenticatableContract,
2146
AuthorizableContract,
@@ -85,7 +110,7 @@ class User extends Validable implements
85110
/**
86111
* @var array
87112
*/
88-
protected $dates = [self::CREATED_AT, self::UPDATED_AT, 'totp_authenticated_at'];
113+
protected $dates = ['totp_authenticated_at'];
89114

90115
/**
91116
* The attributes excluded from the model's JSON form.

0 commit comments

Comments
 (0)