mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 20:05:48 -05:00
36 lines
622 B
PHP
36 lines
622 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Remote;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ReportBackupRestoreRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return ValidationRules
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'successful' => ['required', 'boolean'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array{successful: bool}
|
|
*/
|
|
public function payload(): array
|
|
{
|
|
return [
|
|
'successful' => $this->boolean('successful'),
|
|
];
|
|
}
|
|
}
|