Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Portugal Postal Codes / Códigos Postais de Portugal

MySql / CSV / Laravel 4

Updated Jan 2015

  • Countries
  • Distritos
  • Concelhos
  • Códigos Postais

Address fields not included

MySql / CSV

Just import the table dumps to Database or CSV files to your project

Laravel 4

  1. Extract migration files to the migrations folder in your Laravel Project

  2. Run Migrations

	php artisan migrate
  1. Open DatabaseSeeder.php and add the following lines:
	$this->call('CodigosPostaisTableSeeder');
	$this->call('ConcelhosTableSeeder');
	$this->call('DistritosTableSeeder');
	$this->call('CountriesTableSeeder');
  1. Seed Tables

    Open DatabaseSeeder.php

	php artisan db:seed
  1. Extract model files to the models folder in your Laravel Project

#License Open Source software under MIT License

About

Postal Codes (Portugal)

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages