Skip to content

Releases: robertogallea/laravel-codicefiscale

v2.0.2

22 Jul 08:44
Compare
Choose a tag to compare
Fix styling

2.0.0

14 Jun 07:14
Compare
Choose a tag to compare
  • Add Faker provider for generating total or partial generation of codice fiscale
  • Add support for Carbon 3
  • Minor refactoring

1.12.1

25 Nov 08:09
35a2087
Compare
Choose a tag to compare
Add missing city (#55)

* Add 'I719' => 'SIAMANNA SIAPICCIA',

* Add 'I719' => 'SIAMANNA SIAPICCIA',

1.10.1

25 Oct 13:07
14118c0
Compare
Choose a tag to compare
Merge pull request #37 from robertogallea/add_configurable_labels_and…

1.9.1

15 Oct 06:32
531a45d
Compare
Choose a tag to compare
Merge pull request #32 from michelepizzi/master

add other cities from A001 to A099 and F888

1.9.0

28 Sep 13:30
Compare
Choose a tag to compare

You can now validate your codice fiscale against other form fields to check whether there is a match
or not.

You must specify all of the required fields:

  • first_name
  • last_name
  • birthdate
  • place
  • gender

giving parameters to the codice_fiscale rule.

For example:

    public function rules()
    {
        return [
            'codicefiscale' => 'codice_fiscale:first_name=first_name_field,last_name=last_name_field,birthdate=birthdate_field,place=place_field,gender=gender_field',
            'first_name_field' => 'required|string',
            'last_name_field' => 'required|string',
            'birthdate_field' => 'required|date',
            'place_field' => 'required|string',
            'gender_field' => 'required|string|max:1',
        ];
    }

Validation fails if the provided codicefiscale and the one generated from the input fields do not match.

1.8.2

27 Sep 12:21
097f23b
Compare
Choose a tag to compare
Merge pull request #30 from michelepizzi/master

H397 code for an italian city

1.7.2

11 Aug 10:55
68a1333
Compare
Choose a tag to compare
Merge pull request #25 from halservice/custom

Added C171

1.7.1

07 Jul 12:14
Compare
Choose a tag to compare
Fix validation regex

1.7.0

02 Jul 13:05
Compare
Choose a tag to compare
Add CompositeCityDecoderList