mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 11:15:09 -05:00
32 lines
696 B
PHP
32 lines
696 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Admin\Tools;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SaveLauncherMessageRequest extends FormRequest
|
|
{
|
|
public string $message;
|
|
|
|
public ?string $url;
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'message' => 'required|string',
|
|
'url' => 'nullable|string',
|
|
];
|
|
}
|
|
|
|
protected function passedValidation()
|
|
{
|
|
$this->message = $this->input('message');
|
|
$this->url = $this->input('url');
|
|
}
|
|
}
|