Files
pterodactyl-panel/app/Http/Requests/Api/Remote/InstallationDataRequest.php
T

22 lines
397 B
PHP
Raw Normal View History

2020-01-19 13:50:38 -08:00
<?php
namespace Pterodactyl\Http\Requests\Api\Remote;
use Illuminate\Foundation\Http\FormRequest;
class InstallationDataRequest extends FormRequest
{
2022-10-14 10:59:20 -06:00
public function authorize(): bool
2020-01-19 13:50:38 -08:00
{
return true;
}
2022-10-14 10:59:20 -06:00
public function rules(): array
2020-01-19 13:50:38 -08:00
{
return [
'successful' => 'present|boolean',
'reinstall' => 'sometimes|boolean',
2020-01-19 13:50:38 -08:00
];
}
}