misc_pterodactyl-panel/app/Http/Requests/Admin/Egg/EggScriptFormRequest.php

23 lines
653 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Http\Requests\Admin\Egg;
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
class EggScriptFormRequest extends AdminFormRequest
{
2017-03-19 23:36:50 +00:00
/**
* Return the rules to be used when validating the data sent in the request.
2017-03-19 23:36:50 +00:00
*/
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',
];
}
}