Download the PHP package devcake-deventer/country-seeder without Composer
On this page you can find all versions of the php package devcake-deventer/country-seeder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devcake-deventer/country-seeder
More information about devcake-deventer/country-seeder
Files in devcake-deventer/country-seeder
Package country-seeder
Short Description This package can be used within laravel to seed a dutch translated country table to the database
License MIT
Informations about the package country-seeder
Laravel Country Seeder
Seed Dutch country names and nationalities to a table of your choice
Base seeder
This package comes with a simple base seeder used within most of our projects. It enables us to seed specified tables only in development environments. The default behaviour is to seed the nationalities and/or countries in all environments.
Usage
There are several ways on how to use this package, the default behavior is configured to place all files (migrations, seeders and base seeder) into your project. We also offer solutions to customize the files copied to your project.
- Install this package:
composer require devcake-deventer/country-seeder
- Publish the configuration:
php artisan vendor:publish --tag=$required-tag
- Change the config as desired
- php artisan db:seed
Configurable properties
The configuration sections for countries and nationalities are identical, so only the country version is explained below.
Key | Default | Description |
---|---|---|
countries.sync |
true |
Indicates if database entries be kept in sync with the seeder (true ) or only new entries be inserted (false ) |
countries.table |
"countries" |
Name of the database table |
countries.columns.code |
"code" |
Name of the code column in the database |
countries.columns.name |
"name" |
Name of the name column in the database |
Available tags
We provide 4 different tags to publish required files to your project.
Tag | Description |
---|---|
country-seeder |
Pulls in all files for seeding nationalities and countries. Including the base seeder |
country-seeder-countries |
Pulls in all the files for seeding countries |
country-seeder-nationalities |
Pulls in all the files for seeding nationalities |
base-seeder |
Only pulls in the base seeder |