Download the PHP package thedevsbuddy/laraworld without Composer
On this page you can find all versions of the php package thedevsbuddy/laraworld. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thedevsbuddy/laraworld
More information about thedevsbuddy/laraworld
Files in thedevsbuddy/laraworld
Package laraworld
Short Description A simple package for the world data (Country, State and City)
License MIT
Homepage https://github.com/thedevsbuddy/laraworld
Informations about the package laraworld
LaraWorld
A simple package for the world data (Country, State and City)
Get the country state and city related data for your laravel projects.
Installation
You can install the package via composer:
Publish the assets
Create Country, State and City tables and Import data.
Usage
jQuery
LaraWorld uses ajax to fetch the country state and city data which requires as a dependency. So you will have to use in the page before adding in the page.
Load and In your or wherever needed.
To show dropdown in any page for the country, state and city you can use.
That's it, You don't have to do anything else. Now it will automatically populate the countries and when you select a country it will show state list and so on.
Additional options
Set default value
If you want to set the default selected option / value you can do that as well. To set default value you can pass property in the element.
Example
Select2
If you want to use on your app we have also covered it.
To initialized just add class in the select element.
Example
Note:- You will have to import CDN in the page.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.