set country on the airline, in admin and installer #191
This commit is contained in:
24
app/Support/Countries.php
Normal file
24
app/Support/Countries.php
Normal 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
12
app/Support/ICAO.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
/**
|
||||
* ICAO Helper Tools
|
||||
* @package App\Support
|
||||
*/
|
||||
class ICAO
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user