From 5b919353edfc523d83ed52711ef1e8bdc9a11f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiago=20Pav=C3=A3o=20Marquesini?= Date: Tue, 29 Oct 2019 11:51:45 -0300 Subject: [PATCH 1/5] Update Base.php Add Brazilian States --- src/Base.php | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/Base.php b/src/Base.php index 5e15d5a..a5eb797 100644 --- a/src/Base.php +++ b/src/Base.php @@ -16,7 +16,7 @@ function __construct(string $country = null) $v = Validator::make([ "country" => $country, ], [ - "country" => "nullable|string|in:US,CA,MX", + "country" => "nullable|string|in:US,CA,MX,BR", ]); if ($v->fails()) { @@ -147,6 +147,35 @@ protected function isAbbr($value, string $country = null): bool ["abbr" => "VER", "name" => "Veracruz de Ignacio de la Llave"], ["abbr" => "YUC", "name" => "Yucatán"], ["abbr" => "ZAC", "name" => "Zacatecas"], + ], + "BR" => [ + ["abbr" => 'AC', "name" => 'Acre'], + ["abbr" => 'AL', "name" => 'Alagoas'], + ["abbr" => 'AP', "name" => 'Amapá'], + ["abbr" => 'AM', "name" => 'Amazonas'], + ["abbr" => 'BA', "name" => 'Bahia'], + ["abbr" => 'CE', "name" => 'Ceará'], + ["abbr" => 'DF', "name" => 'Distrito Federal'], + ["abbr" => 'ES', "name" => 'Espírito Santo'], + ["abbr" => 'GO', "name" => 'Goiás'], + ["abbr" => 'MA', "name" => 'Maranhão'], + ["abbr" => 'MT', "name" => 'Mato Grosso'], + ["abbr" => 'MS', "name" => 'Mato Grosso do Sul'], + ["abbr" => 'MG', "name" => 'Minas Gerais'], + ["abbr" => 'PA', "name" => 'Pará'], + ["abbr" => 'PB', "name" => 'Paraíba'], + ["abbr" => 'PR', "name" => 'Paraná'], + ["abbr" => 'PE', "name" => 'Pernambuco'], + ["abbr" => 'PI', "name" => 'Piauí'], + ["abbr" => 'RR', "name" => 'Roraima'], + ["abbr" => 'RO', "name" => 'Rondônia'], + ["abbr" => 'RJ', "name" => 'Rio de Janeiro'], + ["abbr" => 'RN', "name" => 'Rio Grande do Norte'], + ["abbr" => 'RS', "name" => 'Rio Grande do Sul'], + ["abbr" => 'SC', "name" => 'Santa Catarina'], + ["abbr" => 'SP', "name" => 'São Paulo'], + ["abbr" => 'SE', "name" => 'Sergipe'], + ["abbr" => 'TO', "name" => 'Tocantins'], ], ]; @@ -156,6 +185,7 @@ protected function getSubject(string $country = null): string { case "US": case "MX": + case "BR": return "State"; case "CA": return "Province"; From 60c7a8e53e3201496aec5da0e803e79173a4ff3d Mon Sep 17 00:00:00 2001 From: Scott Robinson Date: Wed, 11 Mar 2020 16:40:13 +0000 Subject: [PATCH 2/5] Add Laravel 7 support --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index cfcf4e6..8afdba9 100644 --- a/composer.json +++ b/composer.json @@ -27,12 +27,12 @@ }, "minimum-stability": "stable", "require": { - "illuminate/contracts": "^5.5|^6.0", - "illuminate/support": "^5.5|^6.0" + "illuminate/contracts": "^5.5|^6.0|^7.0", + "illuminate/support": "^5.5|^6.0|^7.0" }, "require-dev": { - "phpunit/phpunit": "^7.0|^8.0", - "orchestra/testbench": "^3.5|^4.0" + "phpunit/phpunit": "^7.0|^8.0|^9.0", + "orchestra/testbench": "^3.5|^4.0|^5.0" }, "suggest": {} } From bdce257a2b827c4f671a6917efa00a53083fcd1f Mon Sep 17 00:00:00 2001 From: Scott Robinson Date: Wed, 16 Sep 2020 19:32:58 +0100 Subject: [PATCH 3/5] Version bump --- composer.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8afdba9..7933272 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,12 @@ { "name": "Tyler Arbon", "email": "tylercd100@gmail.com" - } + }, + { + "name": "Scott Robinson", + "email": "scott@dor.ky", + "homepage": "http://dor.ky" + } ], "autoload": { "psr-4": { @@ -27,8 +32,8 @@ }, "minimum-stability": "stable", "require": { - "illuminate/contracts": "^5.5|^6.0|^7.0", - "illuminate/support": "^5.5|^6.0|^7.0" + "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0", + "illuminate/support": "^5.5|^6.0|^7.0|^8.0" }, "require-dev": { "phpunit/phpunit": "^7.0|^8.0|^9.0", From 93bb350cb502682d5402e472c994c0f28085d54d Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 5 Feb 2022 15:37:02 +0000 Subject: [PATCH 4/5] Bump dependencies for Laravel 9 --- composer.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 7933272..acaad5c 100644 --- a/composer.json +++ b/composer.json @@ -13,12 +13,12 @@ { "name": "Tyler Arbon", "email": "tylercd100@gmail.com" - }, - { - "name": "Scott Robinson", - "email": "scott@dor.ky", - "homepage": "http://dor.ky" - } + }, + { + "name": "Scott Robinson", + "email": "scott@dor.ky", + "homepage": "http://dor.ky" + } ], "autoload": { "psr-4": { @@ -32,12 +32,12 @@ }, "minimum-stability": "stable", "require": { - "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0", - "illuminate/support": "^5.5|^6.0|^7.0|^8.0" + "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0|^9.0", + "illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0" }, "require-dev": { "phpunit/phpunit": "^7.0|^8.0|^9.0", - "orchestra/testbench": "^3.5|^4.0|^5.0" + "orchestra/testbench": "^3.5|^4.0|^5.0|^7.0" }, - "suggest": {} + "suggest": [] } From bce7bf7f4989aaeeacf119a730a9d9f469459ab4 Mon Sep 17 00:00:00 2001 From: Micheal Mand Date: Sat, 18 Feb 2023 15:49:37 -0700 Subject: [PATCH 5/5] Allow Laravel 10 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index acaad5c..4fe7c4b 100644 --- a/composer.json +++ b/composer.json @@ -32,12 +32,12 @@ }, "minimum-stability": "stable", "require": { - "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0|^9.0", - "illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0" + "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0|^10.0" }, "require-dev": { "phpunit/phpunit": "^7.0|^8.0|^9.0", - "orchestra/testbench": "^3.5|^4.0|^5.0|^7.0" + "orchestra/testbench": "^3.5|^4.0|^5.0|^7.0|^8.0" }, "suggest": [] }