2020-01-19 13:50:38 -08:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2020-01-19 13:50:38 -08:00
|
|
|
namespace Pterodactyl\Http\Requests\Api\Remote;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
2026-10-11 09:43:40 -04:00
|
|
|
use Pterodactyl\Actions\Servers\RecordServerInstallResult;
|
2020-01-19 13:50:38 -08:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
/**
|
|
|
|
|
* @return ValidationRules
|
|
|
|
|
*/
|
2022-10-14 10:59:20 -06:00
|
|
|
public function rules(): array
|
2020-01-19 13:50:38 -08:00
|
|
|
{
|
2026-10-11 09:43:40 -04:00
|
|
|
return RecordServerInstallResult::rules();
|
2020-01-19 13:50:38 -08:00
|
|
|
}
|
|
|
|
|
}
|