Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Models/Setting.php
7432 views
1
<?php
2
3
namespace Pterodactyl\Models;
4
5
/**
6
* Pterodactyl\Models\Setting.
7
*
8
* @property int $id
9
* @property string $key
10
* @property string $value
11
*/
12
class Setting extends Model
13
{
14
/**
15
* The table associated with the model.
16
*/
17
protected $table = 'settings';
18
19
public $timestamps = false;
20
21
protected $fillable = ['key', 'value'];
22
23
public static array $validationRules = [
24
'key' => 'required|string|between:1,191',
25
'value' => 'string',
26
];
27
}
28
29