mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
26 lines
620 B
PHP
26 lines
620 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Pterodactyl\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Attributes\Guarded;
|
||
|
|
use Illuminate\Database\Eloquent\Attributes\Hidden;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* One key/value pair of an extension's settings. Values are stored JSON-encoded.
|
||
|
|
*/
|
||
|
|
#[Guarded(['id', 'created_at', 'updated_at'])]
|
||
|
|
#[Hidden(['value'])]
|
||
|
|
class ExtensionSetting extends Model
|
||
|
|
{
|
||
|
|
/** @var array<string, string|bool> */
|
||
|
|
protected $attributes = ['scope' => 'global', 'is_secret' => false];
|
||
|
|
|
||
|
|
/** @return array<string, string> */
|
||
|
|
protected function casts(): array
|
||
|
|
{
|
||
|
|
return ['is_secret' => 'boolean'];
|
||
|
|
}
|
||
|
|
}
|