devcake-deventer/country-seeder

This package can be used within laravel to seed a dutch translated country table to the database

1.0.1 2021-06-12 13:24 UTC

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.

  1. Install this package: composer require devcake-deventer/country-seeder
  2. Publish the configuration: php artisan vendor:publish --tag=$required-tag
  3. Change the config as desired
  4. 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.