set country on the airline, in admin and installer #191

This commit is contained in:
Nabeel Shahzad
2018-02-12 10:51:04 -06:00
parent 61dc0a046d
commit 62506a26a1
21 changed files with 11199 additions and 2578 deletions

24
app/Support/Countries.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace App\Support;
/**
* Class Countries
* @package App\Support
*/
class Countries
{
/**
* Get a select box list of all the countries
* @return static
*/
public static function getSelectList()
{
$countries = collect((new \League\ISO3166\ISO3166)->all())
->mapWithKeys(function ($item, $key) {
return [strtolower($item['alpha2']) => $item['name']];
});
return $countries;
}
}

12
app/Support/ICAO.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace App\Support;
/**
* ICAO Helper Tools
* @package App\Support
*/
class ICAO
{
}