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