Skip to content

Releases: square-bit/laravel-pt-rules

Improve error messages

09 Aug 11:55
Compare
Choose a tag to compare

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.

Adds CompanyNIF validator

17 Oct 11:02
Compare
Choose a tag to compare

Adds CompanyNIF Rule.

Updated error messages

15 Mar 10:11
de2dd06
Compare
Choose a tag to compare

Fix error messages

Validation rules relevant to Portugal

06 Nov 14:37
Compare
Choose a tag to compare

Version 1.0

Added

  • Everything