32 lines
		
	
	
		
			496 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			496 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Models;
 | |
| 
 | |
| class Setting extends Model
 | |
| {
 | |
|     /**
 | |
|      * The table associated with the model.
 | |
|      *
 | |
|      * @var string
 | |
|      */
 | |
|     protected $table = 'settings';
 | |
| 
 | |
|     /**
 | |
|      * @var bool
 | |
|      */
 | |
|     public $timestamps = false;
 | |
| 
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     protected $fillable = ['key', 'value'];
 | |
| 
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     public static $validationRules = [
 | |
|         'key' => 'required|string|between:1,191',
 | |
|         'value' => 'string',
 | |
|     ];
 | |
| }
 | 
