Skip to content

Improve error messages

Latest
Compare
Choose a tag to compare
@tiagof tiagof released this 09 Aug 11:55

PHP minimum version is now 7.4.


Error messages can now use :nif placeholder that will be replaced by the failing nif value.
The package comes with

<?php

return [
    "invalidNIF" => "':attribute' não é um NIF válido.",
    ...
];

but if you publish and replace with (ex.)

<?php

return [
    "invalidNIF" => "':attribute' com valor ':nif' não é um NIF válido.",
    ...
];

Will get the value in the message as well.