misc_pterodactyl-panel/app/Http/Requests/Api/Remote/ReportBackupCompleteRequest.php
2020-04-17 10:21:51 -07:00

20 lines
431 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Remote;
use Illuminate\Foundation\Http\FormRequest;
class ReportBackupCompleteRequest extends FormRequest
{
/**
* @return string[]
*/
public function rules()
{
return [
'successful' => 'boolean',
'checksum' => 'string|required_if:successful,true',
'size' => 'numeric|required_if:successful,true',
];
}
}