Files
sam-api/app/Http/Requests/TenantSetting/BulkUpdateSettingsRequest.php

25 lines
564 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\TenantSetting;
use Illuminate\Foundation\Http\FormRequest;
class BulkUpdateSettingsRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'group' => 'required|string|max:50',
'settings' => 'required|array',
'settings.*.key' => 'required|string|max:100',
'settings.*.value' => 'required',
'settings.*.description' => 'nullable|string|max:255',
];
}
}