2017-12-15 04:05:26 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Models;
|
|
|
|
|
2020-04-04 08:22:35 +02:00
|
|
|
class Setting extends Model
|
2017-12-15 04:05:26 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The table associated with the model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $table = 'settings';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = ['key', 'value'];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
2019-09-05 07:19:57 +02:00
|
|
|
public static $validationRules = [
|
2020-09-27 01:29:26 +02:00
|
|
|
'key' => 'required|string|between:1,191',
|
2017-12-15 04:05:26 +01:00
|
|
|
'value' => 'string',
|
|
|
|
];
|
|
|
|
}
|