File "UpdateProjectGroupRequest.php"

Full Path: /var/www/html/back/app/Domain/Project/UpdateProjectGroupRequest.php
File size: 692 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace App\Domain\Project\Requests;

use App\BaseClasses\BaseApiRequest;

class UpdateProjectGroupRequest extends BaseApiRequest
{
    public static function bodyParameters(): array
    {
        return [
            'name' => ['description' => 'name'],
        ];
    }

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'name' => ['required', 'string', 'max:255'],
        ];
    }

    public static function example(): array
    {
        return [
            'name' => 'Тестовая группа проектов (изменено)',
        ];
    }


}