mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 14:16:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			878 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			878 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Pterodactyl - Panel
 | |
|  * Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
 | |
|  *
 | |
|  * This software is licensed under the terms of the MIT license.
 | |
|  * https://opensource.org/licenses/MIT
 | |
|  */
 | |
| 
 | |
| namespace Pterodactyl\Http\Requests\Admin\Egg;
 | |
| 
 | |
| use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
 | |
| 
 | |
| class EggScriptFormRequest extends AdminFormRequest
 | |
| {
 | |
|     /**
 | |
|      * Return the rules to be used when validating the sent data in the request.
 | |
|      *
 | |
|      * @return array
 | |
|      */
 | |
|     public function rules()
 | |
|     {
 | |
|         return [
 | |
|             'script_install' => 'sometimes|nullable|string',
 | |
|             'script_is_privileged' => 'sometimes|required|boolean',
 | |
|             'script_entry' => 'sometimes|required|string',
 | |
|             'script_container' => 'sometimes|required|string',
 | |
|             'copy_script_from' => 'sometimes|nullable|numeric',
 | |
|         ];
 | |
|     }
 | |
| }
 | 
