Laravel Business Rules & Errors

In my opinion:


  throw ValidationException::withMessages(['error.business_logic_incorrect' => 'The invoice total amount cannot be greater than 0 if it is a Credit Note.']);

PHP

Copy

Have a great day/night!

G.