Laravel world

Submitted by nnjeim - 3 months ago

Laravel World is a package providing a list of the countries, states, cities, currencies, and timezones. World integrates data with Eloquent models via the database and provides facades, helpers, and API routes. https://github.com/nnjeim/world

use Nnjeim\World\World;
 
$action =  World::countries();
/*
{
	"success": true,
	"message": "countries",
	"data": [
		{
			"id": 1,
			"name": "Afghanistan"
		},
		{
			"id": 2,
			"name": "Ă…land Islands"
		},
      ...
	],
}
*/