update logic

This commit is contained in:
baodev0
2026-06-15 09:11:57 +07:00
parent 9c68273b4a
commit 3243473843
30 changed files with 2502 additions and 24 deletions
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace App\Http\Requests\Api\Order;
use Illuminate\Foundation\Http\FormRequest;
class RenewServiceRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'months' => ['required', 'integer', 'min:1', 'max:24'],
];
}
public function messages(): array
{
return [
'months.required' => 'Vui lòng chọn số tháng gia hạn.',
'months.integer' => 'Số tháng gia hạn không hợp lệ.',
'months.min' => 'Số tháng gia hạn tối thiểu là 1.',
'months.max' => 'Số tháng gia hạn tối đa là 24.',
];
}
}