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'],
];
}
}