79664959

Date: 2025-06-13 14:01:59
Score: 0.5
Natty:
Report link

I have noted that in the first one I am using

$billData = UploadInvoiceBillData::from($request->only(['invoice_number']));

Isntead of

$billData = UploadInvoiceBillData::validateAndCreate($request->only(['invoice_number']));

The second one I am using

$billData = BillData::from($request);

I feel from method only validates first if it is an instance of Illuminate\Http\Request

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: John