update api register

This commit is contained in:
Wian Drs
2026-08-01 11:42:42 +07:00
parent b0d08211ec
commit 75342dc7b7
55 changed files with 2254 additions and 35 deletions
@@ -0,0 +1,24 @@
<?php
namespace App\Http\Requests\Voucher;
use Illuminate\Foundation\Http\FormRequest;
class SaveVoucherLoginPageRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'enabled' => ['required', 'boolean'], 'title' => ['required', 'string', 'max:150'],
'theme_color' => ['required', 'regex:/^#[0-9A-Fa-f]{6}$/'],
'allowed_package_profile_ids' => ['nullable', 'array'],
'allowed_package_profile_ids.*' => ['integer', 'exists:nas_package_profiles,id'],
'settings' => ['nullable', 'array'],
];
}
}