27 lines
713 B
PHP
27 lines
713 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Client;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ReportSubmitRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'document_id' => ['required', 'exists:documents,id'],
|
|
'technique' => ['nullable', 'string', 'max:10000'],
|
|
'finding' => ['required', 'string', 'max:10000'],
|
|
'diagnose' => ['nullable', 'string', 'max:10000'],
|
|
'recommendation' => ['nullable', 'string', 'max:10000'],
|
|
'files' => ['nullable', 'array'],
|
|
'files.*' => ['file', 'image', 'max:10240'],
|
|
];
|
|
}
|
|
}
|