2020-08-23 01:13:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Startup;
|
|
|
|
|
|
|
|
use Pterodactyl\Models\Permission;
|
|
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
|
|
|
|
class UpdateStartupVariableRequest extends ClientApiRequest
|
|
|
|
{
|
2022-10-14 16:59:20 +00:00
|
|
|
public function permission(): string
|
2020-08-23 01:13:59 +00:00
|
|
|
{
|
|
|
|
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',
|
2020-10-10 23:45:24 +00:00
|
|
|
'value' => 'present',
|
2020-08-23 01:13:59 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|