countries states

This commit is contained in:
merdan 2022-02-24 12:05:56 +05:00
parent 2a2cbdf9de
commit 208e660153
5 changed files with 98 additions and 102 deletions

184
composer.lock generated
View File

@ -143,16 +143,16 @@
},
{
"name": "aws/aws-sdk-php",
"version": "3.209.24",
"version": "3.209.29",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "ce68bfc141863a25f4b870f10cfa996312fb1813"
"reference": "d2a7902ea12fbcfc26a0ae6a07d0e5f8c6e5e9a1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/ce68bfc141863a25f4b870f10cfa996312fb1813",
"reference": "ce68bfc141863a25f4b870f10cfa996312fb1813",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/d2a7902ea12fbcfc26a0ae6a07d0e5f8c6e5e9a1",
"reference": "d2a7902ea12fbcfc26a0ae6a07d0e5f8c6e5e9a1",
"shasum": ""
},
"require": {
@ -228,9 +228,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.209.24"
"source": "https://github.com/aws/aws-sdk-php/tree/3.209.29"
},
"time": "2022-02-14T19:15:07+00:00"
"time": "2022-02-22T19:14:12+00:00"
},
{
"name": "bagisto/legacy-api",
@ -1437,16 +1437,16 @@
},
{
"name": "enshrined/svg-sanitize",
"version": "0.15.2",
"version": "0.15.4",
"source": {
"type": "git",
"url": "https://github.com/darylldoyle/svg-sanitizer.git",
"reference": "454682a67b335bb918952b93c4e699a36012c568"
"reference": "e50b83a2f1f296ca61394fe88fbfe3e896a84cf4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/darylldoyle/svg-sanitizer/zipball/454682a67b335bb918952b93c4e699a36012c568",
"reference": "454682a67b335bb918952b93c4e699a36012c568",
"url": "https://api.github.com/repos/darylldoyle/svg-sanitizer/zipball/e50b83a2f1f296ca61394fe88fbfe3e896a84cf4",
"reference": "e50b83a2f1f296ca61394fe88fbfe3e896a84cf4",
"shasum": ""
},
"require": {
@ -1476,9 +1476,9 @@
"description": "An SVG sanitizer for PHP",
"support": {
"issues": "https://github.com/darylldoyle/svg-sanitizer/issues",
"source": "https://github.com/darylldoyle/svg-sanitizer/tree/0.15.2"
"source": "https://github.com/darylldoyle/svg-sanitizer/tree/0.15.4"
},
"time": "2022-02-14T00:53:22+00:00"
"time": "2022-02-21T09:13:59+00:00"
},
{
"name": "ezyang/htmlpurifier",
@ -2127,12 +2127,12 @@
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Promise\\": "src/"
},
"files": [
"src/functions_include.php"
]
],
"psr-4": {
"GuzzleHttp\\Promise\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@ -2748,16 +2748,16 @@
},
{
"name": "laravel/framework",
"version": "v8.83.0",
"version": "v8.83.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "29bc8779103909ebc428478b339ee6fa8703e193"
"reference": "b91b3b5b39fbbdc763746f5714e08d50a4dd7857"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/29bc8779103909ebc428478b339ee6fa8703e193",
"reference": "29bc8779103909ebc428478b339ee6fa8703e193",
"url": "https://api.github.com/repos/laravel/framework/zipball/b91b3b5b39fbbdc763746f5714e08d50a4dd7857",
"reference": "b91b3b5b39fbbdc763746f5714e08d50a4dd7857",
"shasum": ""
},
"require": {
@ -2917,20 +2917,20 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2022-02-08T15:44:51+00:00"
"time": "2022-02-22T15:10:17+00:00"
},
{
"name": "laravel/sanctum",
"version": "v2.14.0",
"version": "v2.14.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/sanctum.git",
"reference": "0647a87140c7522e75826cffcadb3ad6e01f71e9"
"reference": "dc5d749ba9bfcfd68d8f5c272238f88bea223e66"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/0647a87140c7522e75826cffcadb3ad6e01f71e9",
"reference": "0647a87140c7522e75826cffcadb3ad6e01f71e9",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/dc5d749ba9bfcfd68d8f5c272238f88bea223e66",
"reference": "dc5d749ba9bfcfd68d8f5c272238f88bea223e66",
"shasum": ""
},
"require": {
@ -2981,7 +2981,7 @@
"issues": "https://github.com/laravel/sanctum/issues",
"source": "https://github.com/laravel/sanctum"
},
"time": "2022-01-12T15:07:43+00:00"
"time": "2022-02-16T14:40:23+00:00"
},
{
"name": "laravel/scout",
@ -3054,16 +3054,16 @@
},
{
"name": "laravel/serializable-closure",
"version": "v1.1.0",
"version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/serializable-closure.git",
"reference": "65c9faf50d567b65d81764a44526545689e3fe63"
"reference": "9e4b005daa20b0c161f3845040046dc9ddc1d74e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/65c9faf50d567b65d81764a44526545689e3fe63",
"reference": "65c9faf50d567b65d81764a44526545689e3fe63",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/9e4b005daa20b0c161f3845040046dc9ddc1d74e",
"reference": "9e4b005daa20b0c161f3845040046dc9ddc1d74e",
"shasum": ""
},
"require": {
@ -3109,7 +3109,7 @@
"issues": "https://github.com/laravel/serializable-closure/issues",
"source": "https://github.com/laravel/serializable-closure"
},
"time": "2022-02-01T16:29:39+00:00"
"time": "2022-02-11T19:23:53+00:00"
},
{
"name": "laravel/socialite",
@ -3250,16 +3250,16 @@
},
{
"name": "laravel/ui",
"version": "v3.4.3",
"version": "v3.4.5",
"source": {
"type": "git",
"url": "https://github.com/laravel/ui.git",
"reference": "64a0f43492c00780b2261c56cd7007a4f370d95b"
"reference": "f11d295de1508c5bb56206a620b00b6616de414c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/ui/zipball/64a0f43492c00780b2261c56cd7007a4f370d95b",
"reference": "64a0f43492c00780b2261c56cd7007a4f370d95b",
"url": "https://api.github.com/repos/laravel/ui/zipball/f11d295de1508c5bb56206a620b00b6616de414c",
"reference": "f11d295de1508c5bb56206a620b00b6616de414c",
"shasum": ""
},
"require": {
@ -3305,9 +3305,9 @@
"ui"
],
"support": {
"source": "https://github.com/laravel/ui/tree/v3.4.3"
"source": "https://github.com/laravel/ui/tree/v3.4.5"
},
"time": "2022-02-08T14:19:32+00:00"
"time": "2022-02-21T14:59:16+00:00"
},
{
"name": "lcobucci/clock",
@ -4467,16 +4467,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.56.0",
"version": "2.57.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "626ec8cbb724cd3c3400c3ed8f730545b744e3f4"
"reference": "4a54375c21eea4811dbd1149fe6b246517554e78"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/626ec8cbb724cd3c3400c3ed8f730545b744e3f4",
"reference": "626ec8cbb724cd3c3400c3ed8f730545b744e3f4",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4a54375c21eea4811dbd1149fe6b246517554e78",
"reference": "4a54375c21eea4811dbd1149fe6b246517554e78",
"shasum": ""
},
"require": {
@ -4559,7 +4559,7 @@
"type": "tidelift"
}
],
"time": "2022-01-21T17:08:38+00:00"
"time": "2022-02-13T18:13:33+00:00"
},
{
"name": "nette/schema",
@ -4988,8 +4988,8 @@
"type": "library",
"autoload": {
"psr-4": {
"PayPalCheckoutSdk\\": "lib/PayPalCheckoutSdk",
"Sample\\": "samples/"
"Sample\\": "samples/",
"PayPalCheckoutSdk\\": "lib/PayPalCheckoutSdk"
}
},
"notification-url": "https://packagist.org/downloads/",
@ -5246,16 +5246,16 @@
},
{
"name": "phpoffice/phpspreadsheet",
"version": "1.21.0",
"version": "1.22.0",
"source": {
"type": "git",
"url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
"reference": "1a359d2ccbb89c05f5dffb32711a95f4afc67964"
"reference": "3a9e29b4f386a08a151a33578e80ef1747037a48"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/1a359d2ccbb89c05f5dffb32711a95f4afc67964",
"reference": "1a359d2ccbb89c05f5dffb32711a95f4afc67964",
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/3a9e29b4f386a08a151a33578e80ef1747037a48",
"reference": "3a9e29b4f386a08a151a33578e80ef1747037a48",
"shasum": ""
},
"require": {
@ -5286,7 +5286,7 @@
"dompdf/dompdf": "^1.0",
"friendsofphp/php-cs-fixer": "^3.2",
"jpgraph/jpgraph": "^4.0",
"mpdf/mpdf": "^8.0",
"mpdf/mpdf": "8.0.17",
"phpcompatibility/php-compatibility": "^9.3",
"phpstan/phpstan": "^1.1",
"phpstan/phpstan-phpunit": "^1.0",
@ -5344,9 +5344,9 @@
],
"support": {
"issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues",
"source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.21.0"
"source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.22.0"
},
"time": "2022-01-06T11:10:08+00:00"
"time": "2022-02-18T12:57:07+00:00"
},
{
"name": "phpoption/phpoption",
@ -5421,28 +5421,28 @@
},
{
"name": "prettus/l5-repository",
"version": "2.7.9",
"version": "2.8.0",
"source": {
"type": "git",
"url": "https://github.com/andersao/l5-repository.git",
"reference": "834d61f0d5d9b6ef5786980e0bf4900fffbccd76"
"reference": "bdaf12dcf1fcc2637ccbe06999f789a9ff522fea"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/andersao/l5-repository/zipball/834d61f0d5d9b6ef5786980e0bf4900fffbccd76",
"reference": "834d61f0d5d9b6ef5786980e0bf4900fffbccd76",
"url": "https://api.github.com/repos/andersao/l5-repository/zipball/bdaf12dcf1fcc2637ccbe06999f789a9ff522fea",
"reference": "bdaf12dcf1fcc2637ccbe06999f789a9ff522fea",
"shasum": ""
},
"require": {
"illuminate/config": "~5.0|~6.0|~7.0|^8.0",
"illuminate/console": "~5.0|~6.0|~7.0|^8.0",
"illuminate/database": "~5.0|~6.0|~7.0|^8.0",
"illuminate/filesystem": "~5.0|~6.0|~7.0|^8.0",
"illuminate/http": "~5.0|~6.0|~7.0|^8.0",
"illuminate/pagination": "~5.0|~6.0|~7.0|^8.0",
"illuminate/support": "~5.0|~6.0|~7.0|^8.0",
"illuminate/validation": "~5.0|~6.0|~7.0|^8.0",
"prettus/laravel-validation": "~1.1|~1.2"
"illuminate/config": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/console": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/database": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/filesystem": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/http": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/pagination": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/support": "~5.0|~6.0|~7.0|^8.0|^9.0",
"illuminate/validation": "~5.0|~6.0|~7.0|^8.0|^9.0",
"prettus/laravel-validation": "~1.1|~1.2|~1.3|~1.4"
},
"suggest": {
"league/fractal": "Required to use the Fractal Presenter (0.12.*).",
@ -5474,7 +5474,7 @@
"role": "Developer"
}
],
"description": "Laravel 5|6|7|8 - Repositories to the database layer",
"description": "Laravel 5|6|7|8|9 - Repositories to the database layer",
"homepage": "http://andersao.github.io/l5-repository",
"keywords": [
"cache",
@ -5490,25 +5490,25 @@
"source": "https://github.com/andersao/l5-repository",
"wiki": "https://github.com/andersao/l5-repository"
},
"time": "2021-10-14T23:03:30+00:00"
"time": "2022-02-21T11:19:35+00:00"
},
{
"name": "prettus/laravel-validation",
"version": "1.3.0",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/andersao/laravel-validator.git",
"reference": "cce3c273c9d44f77de031dc4dedd261ab936c497"
"reference": "45d6b64e35d966aa0866d6f5fd22ecbb33ea41d9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/andersao/laravel-validator/zipball/cce3c273c9d44f77de031dc4dedd261ab936c497",
"reference": "cce3c273c9d44f77de031dc4dedd261ab936c497",
"url": "https://api.github.com/repos/andersao/laravel-validator/zipball/45d6b64e35d966aa0866d6f5fd22ecbb33ea41d9",
"reference": "45d6b64e35d966aa0866d6f5fd22ecbb33ea41d9",
"shasum": ""
},
"require": {
"illuminate/support": "~5.4|^6.0|^7.0|^8.0",
"illuminate/validation": "~5.4|^6.0|^7.0|^8.0",
"illuminate/support": "~5.4|^6.0|^7.0|^8.0|^9.0",
"illuminate/validation": "~5.4|^6.0|^7.0|^8.0|^9.0",
"php": ">=5.4.0"
},
"type": "library",
@ -5540,7 +5540,7 @@
"source": "https://github.com/andersao/laravel-validation",
"wiki": "https://github.com/andersao/laravel-validation"
},
"time": "2020-09-21T20:20:45+00:00"
"time": "2022-02-21T11:18:30+00:00"
},
{
"name": "psr/container",
@ -10171,16 +10171,16 @@
},
{
"name": "phar-io/version",
"version": "3.1.1",
"version": "3.2.1",
"source": {
"type": "git",
"url": "https://github.com/phar-io/version.git",
"reference": "15a90844ad40f127afd244c0cad228de2a80052a"
"reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phar-io/version/zipball/15a90844ad40f127afd244c0cad228de2a80052a",
"reference": "15a90844ad40f127afd244c0cad228de2a80052a",
"url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74",
"reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74",
"shasum": ""
},
"require": {
@ -10216,9 +10216,9 @@
"description": "Library for handling version information and constraints",
"support": {
"issues": "https://github.com/phar-io/version/issues",
"source": "https://github.com/phar-io/version/tree/3.1.1"
"source": "https://github.com/phar-io/version/tree/3.2.1"
},
"time": "2022-02-07T21:56:48+00:00"
"time": "2022-02-21T01:04:05+00:00"
},
{
"name": "php-webdriver/webdriver",
@ -10514,16 +10514,16 @@
},
{
"name": "phpunit/php-code-coverage",
"version": "9.2.10",
"version": "9.2.12",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "d5850aaf931743067f4bfc1ae4cbd06468400687"
"reference": "c011a0b6aaa4acd2f39b7f51fb4ad4442b6ec631"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d5850aaf931743067f4bfc1ae4cbd06468400687",
"reference": "d5850aaf931743067f4bfc1ae4cbd06468400687",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c011a0b6aaa4acd2f39b7f51fb4ad4442b6ec631",
"reference": "c011a0b6aaa4acd2f39b7f51fb4ad4442b6ec631",
"shasum": ""
},
"require": {
@ -10579,7 +10579,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.10"
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.12"
},
"funding": [
{
@ -10587,7 +10587,7 @@
"type": "github"
}
],
"time": "2021-12-05T09:12:13+00:00"
"time": "2022-02-23T06:30:26+00:00"
},
{
"name": "phpunit/php-file-iterator",
@ -10832,16 +10832,16 @@
},
{
"name": "phpunit/phpunit",
"version": "9.5.13",
"version": "9.5.15",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "597cb647654ede35e43b137926dfdfef0fb11743"
"reference": "dc738383c519243b0a967f63943a848d3fd861aa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/597cb647654ede35e43b137926dfdfef0fb11743",
"reference": "597cb647654ede35e43b137926dfdfef0fb11743",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/dc738383c519243b0a967f63943a848d3fd861aa",
"reference": "dc738383c519243b0a967f63943a848d3fd861aa",
"shasum": ""
},
"require": {
@ -10857,7 +10857,7 @@
"phar-io/version": "^3.0.2",
"php": ">=7.3",
"phpspec/prophecy": "^1.12.1",
"phpunit/php-code-coverage": "^9.2.7",
"phpunit/php-code-coverage": "^9.2.12",
"phpunit/php-file-iterator": "^3.0.5",
"phpunit/php-invoker": "^3.1.1",
"phpunit/php-text-template": "^2.0.3",
@ -10919,7 +10919,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.13"
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.15"
},
"funding": [
{
@ -10931,7 +10931,7 @@
"type": "github"
}
],
"time": "2022-01-24T07:33:35+00:00"
"time": "2022-02-23T08:53:20+00:00"
},
{
"name": "sebastian/cli-parser",

View File

@ -1,10 +1,7 @@
[
{
"country_id":1,
"name":"Турция"
},
{
"country_id":2,
"name":"Туркменистан"
}
]

View File

@ -1,10 +1,6 @@
[
{
"country_id":1,
"name":"Turkiýa"
},
{
"country_id":2,
"name":"Türkmenistan"
}
]

View File

@ -5,14 +5,17 @@ namespace TPS\Shop\Database\Seeders;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Seeder;
class CountriesTableSeeder extends Seeder
class CountryStatesTableSeeder extends Seeder
{
public function run()
{
DB::table('countries')->delete();
DB::table('country_states')->delete();
$countries = json_decode(file_get_contents(__DIR__ . '/../../Data/countries.json'), true);
$states = json_decode(file_get_contents(__DIR__ . '/../../Data/states.json'), true);
DB::table('countries')->insert($countries);
DB::table('country_states')->insert($states);
}
}

View File

@ -16,7 +16,7 @@ class DatabaseSeeder extends Seeder
$this->call(SLocalesTableSeeder::class);
$this->call(SCurrencyTableSeeder::class);
$this->call(ChannelTableSeeder::class);
$this->call(CountriesTableSeeder::class);
$this->call(CountryStatesTableSeeder::class);
$this->call(CountryStateTranslationSeeder::class);
}