38 lines
1,005 B
PHP
38 lines
1,005 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\V2;
|
|
|
|
use ArondeParon\RequestSanitizer\Sanitizers\Trim;
|
|
use ArondeParon\RequestSanitizer\Traits\SanitizesInputs;
|
|
|
|
class SendArchadiaGameMailRequest extends BaseApiRequest
|
|
{
|
|
use SanitizesInputs;
|
|
|
|
protected $sanitizers = [
|
|
'code_on_pack' => Trim::class,
|
|
'code_unique' => Trim::class,
|
|
'label_type_support' => Trim::class,
|
|
'operation' => Trim::class,
|
|
'order_date' => Trim::class,
|
|
'support_code' => Trim::class,
|
|
'type' => Trim::class
|
|
];
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'code_on_pack' => 'sometimes|string',
|
|
'code_unique' => 'required|string',
|
|
'label_type_support' => 'required|string',
|
|
'operation' => 'required|int',
|
|
'order_date' => 'required|date',
|
|
'support_code' => 'required|int'
|
|
];
|
|
}
|
|
}
|