HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/api.aianced.com/app/Http/Requests/LeadRequest.php
<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class LeadRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'name'     => ['required', 'string', 'max:100'],
            'email'    => ['required', 'email', 'max:150'],
            'phone'    => ['nullable', 'string', 'max:20'],
            'ideaText' => ['required', 'string', 'min:20', 'max:2000'],
            'summary'  => ['nullable', 'array'],
            'summary.productType'   => ['nullable', 'string'],
            'summary.businessModel' => ['nullable', 'string'],
            'summary.targetUsers'   => ['nullable', 'string'],
            'summary.features'     => ['nullable', 'array'],
            'summary.praise'       => ['nullable', 'string'],
            'rateLimited'          => ['nullable', 'boolean'],
        ];
    }
}