McGwery / tanzania-regions-jsons

From regions to streets (Tanzania)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get tanzania regions to its street

The following are the steps

  1. Open file (tanzania_places.json) and read the file according to your programming language you use
  2. For Laravel Developer Create four Models (Region, District, Ward and Street)
  3. Then create the migration for the models as shown in json file
  4. After reading the json start seeding data by creating foreach loop
  5. Create the relationship of model one to many relationship
  6. Finally test the using php artisan tinker

About

From regions to streets (Tanzania)