This repository has been archived on 2025-05-09. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Astral-nook/app/Http/Requests/Api/Client/Servers/SendCommandRequest.php
2021-01-23 12:33:34 -08:00

27 lines
594 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Servers;
use Pterodactyl\Models\Permission;
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
class SendCommandRequest extends ClientApiRequest
{
/**
* Determine if the API user has permission to perform this action.
*/
public function permission(): string
{
return Permission::ACTION_CONTROL_CONSOLE;
}
/**
* Rules to validate this request against.
*/
public function rules(): array
{
return [
'command' => 'required|string|min:1',
];
}
}