General information about this package.
To install this package, please run this command below:
$ composer require faridlab/salt-laravel-countries
Information about using this package
To publish the config file of our package, run the following command:
$ php artisan vendor:publish --tag=countries-config
This will add a new countries.php
file in the config directory.
To publish the migration file, run the following command:
$ php artisan vendor:publish --tag=countries-migrations
To publish the seeder file, run the following command:
$ php artisan vendor:publish --tag=countries-seeds
Next, edit the .env file with your database credentials and run the following command to execute the migrations:
$ php artisan migrate
Run the command to seed the database with some random data:
$ php artisan db:seed --class=CountryIndonesiaSeeder
Information about contributing to this package.