misc_pterodactyl-panel/app/Http/Requests/Api/Remote/InstallationDataRequest.php

22 lines
397 B
PHP
Raw Normal View History

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