mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 01:56:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			655 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			655 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Http\Requests\Api\Client\Servers\Startup;
 | |
| 
 | |
| use Pterodactyl\Models\Permission;
 | |
| use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
 | |
| 
 | |
| class UpdateStartupVariableRequest extends ClientApiRequest
 | |
| {
 | |
|     /**
 | |
|      * @return string
 | |
|      */
 | |
|     public function permission()
 | |
|     {
 | |
|         return Permission::ACTION_STARTUP_UPDATE;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The actual validation of the variable's value will happen inside the controller.
 | |
|      *
 | |
|      * @return array|string[]
 | |
|      */
 | |
|     public function rules(): array
 | |
|     {
 | |
|         return [
 | |
|             'key' => 'required|string',
 | |
|             'value' => 'present',
 | |
|         ];
 | |
|     }
 | |
| }
 | 
