0

I need help on finding right package, or database seeder for German cities, that have appropriate states linked to them and also with postal code values. Does someone know any, or is there some other way to implement that in my Laravel application? Any help is appreciated.

mrmar
  • 1,407
  • 3
  • 11
  • 26

1 Answers1

0

Maybe this json data can help you https://github.com/pensnarik/german-cities But that json does not has Postal Code value. If you have time maybe you can extract postal code from this url https://raw.githubusercontent.com/zauberware/postal-codes-json-xml-csv/master/data/DE/zipcodes.de.json

dikutandi
  • 127
  • 1
  • 6
  • How would I set this in my laravel seeder https://raw.githubusercontent.com/zauberware/postal-codes-json-xml-csv/master/data/DE/zipcodes.de.json . can you help by example? – mrmar May 05 '20 at 08:45
  • you can write artisan command. In artisan command you created you can create script to get json content and input them to your table – dikutandi May 05 '20 at 16:29