mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-04-08 10:45:51 -05:00
21 lines
480 B
PHP
21 lines
480 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Admin\Tools;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SaveMatchmakingConfigurationRequest extends FormRequest
|
|
{
|
|
public int $matchmakingWaitingTime;
|
|
|
|
public function rules(): array {
|
|
return [
|
|
'matchmakingWaitingTime' => ['required', 'integer'],
|
|
];
|
|
}
|
|
|
|
protected function passedValidation()
|
|
{
|
|
$this->matchmakingWaitingTime = (int)$this->input('matchmakingWaitingTime');
|
|
}
|
|
} |