админка

This commit is contained in:
2026-03-13 23:33:35 +04:00
parent bae063a4fa
commit eaedeeb52b
41 changed files with 2506 additions and 67 deletions
@@ -0,0 +1,36 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class UpdateAccountAccessRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'gmlevel' => ['required', 'integer', Rule::in(array_keys(\App\Support\WowData::securityLevels()))],
];
}
/**
* @return array<string, string>
*/
public function messages(): array
{
return [
'gmlevel.required' => 'Укажи уровень доступа.',
'gmlevel.integer' => 'Уровень доступа должен быть числом.',
'gmlevel.in' => 'Выбран недопустимый уровень доступа.',
];
}
}