Download the PHP package brnysn/laravel-world without Composer
On this page you can find all versions of the php package brnysn/laravel-world. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brnysn/laravel-world
More information about brnysn/laravel-world
Files in brnysn/laravel-world
Package laravel-world
Short Description The simplest way to add country, state and city to Laravel application.
License MIT
Homepage https://github.com/brnysn/laravel-world
Informations about the package laravel-world
The simplest way to add country, state and city to Laravel application.
The simplest way to add country, state and city to Laravel application.
Data is taken from dr5hn/countries-states-cities-database. Thanks to dr5hn for the great work.
Data is last updated on 2022-10-26.
Installation
Install the package via composer:
Publish the config file with:
Define whether to use uuid or id in the config file: Migrations will be created according to this setting.
Publish and run the migrations with:
After the migration has been published you can add the countries, states and cities to your database by running:
Seeding the database will take a while.
Add HasWorldAddress
trait to your models to add the country, state and city relationship:
Usage
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Yasin BARAN
- All Contributors
License
The MIT License (MIT). Please see License File for more information.