Download the PHP package renshipt/laravel-portugal-cities without Composer
On this page you can find all versions of the php package renshipt/laravel-portugal-cities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Files in renshipt/laravel-portugal-cities
Short Description Laravel Portugal Cities is a bundle for Laravel.
All versions of laravel-portugal-cities with dependencies
Informations about the package laravel-portugal-cities
Laravel 5 Portugal Cities
Laravel Portufal Cities is a bundle for Laravel.
Please note that the dev-master version is for Laravel 5 only
composer require renshipt/laravel-portugal-cities dev-master in your Laravel root directory to install the latest version.
composer update to pull down the latest version of City List.
app/config/app.php and add the
'providers' => [ Renshipt\Cities\CitiesServiceProvider::class, ]
Now add the alias.
'aliases' => [ 'Cities' => Renshipt\Cities\CitiesFacade::class, ]
You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name
cities suits you, leave it. Otherwise run the following command
$ php artisan vendor:publish
Next generate the migration file:
$ php artisan cities:migration
It will generate the
<timestamp>_setup_cities_table.php migration and the
CitiesSeeder.php seeder. To make sure the data is seeded insert the following code in the
//Seed the cities $this->call('CitiesSeeder'); $this->command->info('Seeded the cities!');
You may now run it with the artisan migrate command:
$ php artisan migrate --seed
After running this command the filled cities table will be available