Add property information to common models
This commit is contained in:
parent
b99ea53ca1
commit
54339c1344
|
@ -5,6 +5,32 @@ namespace Pterodactyl\Models;
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
use Pterodactyl\Models\Traits\Searchable;
|
use Pterodactyl\Models\Traits\Searchable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $id
|
||||||
|
* @property bool $public
|
||||||
|
* @property string $name
|
||||||
|
* @property string $description
|
||||||
|
* @property int $location_id
|
||||||
|
* @property string $fqdn
|
||||||
|
* @property string $scheme
|
||||||
|
* @property bool $behind_proxy
|
||||||
|
* @property bool $maintenance_mode
|
||||||
|
* @property int $memory
|
||||||
|
* @property int $memory_overallocate
|
||||||
|
* @property int $disk
|
||||||
|
* @property int $disk_overallocate
|
||||||
|
* @property int $upload_size
|
||||||
|
* @property string $daemonSecret
|
||||||
|
* @property int $daemonListen
|
||||||
|
* @property int $daemonSFTP
|
||||||
|
* @property string $daemonBase
|
||||||
|
* @property \Carbon\Carbon $created_at
|
||||||
|
* @property \Carbon\Carbon $updated_at
|
||||||
|
*
|
||||||
|
* @property \Pterodactyl\Models\Location $location
|
||||||
|
* @property \Pterodactyl\Models\Server[]|\Illuminate\Support\Collection $servers
|
||||||
|
* @property \Pterodactyl\Models\Allocation[]|\Illuminate\Support\Collection $allocations
|
||||||
|
*/
|
||||||
class Node extends Validable
|
class Node extends Validable
|
||||||
{
|
{
|
||||||
use Notifiable, Searchable;
|
use Notifiable, Searchable;
|
||||||
|
|
|
@ -16,6 +16,31 @@ use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
|
||||||
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
||||||
use Pterodactyl\Notifications\SendPasswordReset as ResetPasswordNotification;
|
use Pterodactyl\Notifications\SendPasswordReset as ResetPasswordNotification;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int $id
|
||||||
|
* @property string|null $external_id
|
||||||
|
* @property string $uuid
|
||||||
|
* @property string $username
|
||||||
|
* @property string $email
|
||||||
|
* @property string|null $name_first
|
||||||
|
* @property string|null $name_last
|
||||||
|
* @property string $password
|
||||||
|
* @property string|null $remeber_token
|
||||||
|
* @property string $language
|
||||||
|
* @property bool $root_admin
|
||||||
|
* @property bool $use_totp
|
||||||
|
* @property string|null $totp_secret
|
||||||
|
* @property \Carbon\Carbon|null $totp_authenticated_at
|
||||||
|
* @property bool $gravatar
|
||||||
|
* @property \Carbon\Carbon $created_at
|
||||||
|
* @property \Carbon\Carbon $updated_at
|
||||||
|
*
|
||||||
|
* @property string $name
|
||||||
|
* @property \Pterodactyl\Models\Permission[]|\Illuminate\Support\Collection $permissions
|
||||||
|
* @property \Pterodactyl\Models\Server[]|\Illuminate\Support\Collection $servers
|
||||||
|
* @property \Pterodactyl\Models\Subuser[]|\Illuminate\Support\Collection $subuserOf
|
||||||
|
* @property \Pterodactyl\Models\DaemonKey[]|\Illuminate\Support\Collection $keys
|
||||||
|
*/
|
||||||
class User extends Validable implements
|
class User extends Validable implements
|
||||||
AuthenticatableContract,
|
AuthenticatableContract,
|
||||||
AuthorizableContract,
|
AuthorizableContract,
|
||||||
|
@ -85,7 +110,7 @@ class User extends Validable implements
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $dates = [self::CREATED_AT, self::UPDATED_AT, 'totp_authenticated_at'];
|
protected $dates = ['totp_authenticated_at'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes excluded from the model's JSON form.
|
* The attributes excluded from the model's JSON form.
|
||||||
|
|
Loading…
Reference in New Issue