feat(vikon): add updatePart endpoint with request validation

This commit is contained in:
F4ilji
2026-07-05 02:50:41 +05:00
parent 15f72b4de1
commit b259809960
4 changed files with 62 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
namespace App\Containers\VikonIntegration\UI\WEB\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdatePartRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'module_id' => ['required', 'integer', 'in:1,2,6'],
'part' => ['required', 'string', 'max:50'],
];
}
}