mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 15:36:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			637 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			637 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Http\Requests\Admin\Egg;
 | 
						|
 | 
						|
use App\Http\Requests\Admin\AdminFormRequest;
 | 
						|
 | 
						|
class EggScriptFormRequest extends AdminFormRequest
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Return the rules to be used when validating the data sent in the request.
 | 
						|
     */
 | 
						|
    public function rules(): array
 | 
						|
    {
 | 
						|
        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',
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |