devcake-deventer / country-seeder
This package can be used within laravel to seed a dutch translated country table to the database
Requires
- php: >=7.3
- illuminate/database: ^7.0.0
- illuminate/support: ^7.0.0
Requires (Dev)
- laravel/framework: ^7.0
- mockery/mockery: ^1.3
- orchestra/testbench: ^5.0
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-11-12 21:05:05 UTC
README
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.
Available tags
We provide 4 different tags to publish required files to your project.