Fewo Mails / Booking Country Services

This commit is contained in:
Kevin Adametz 2020-05-28 19:03:42 +02:00
parent b9c26d06d0
commit 48a6eb2282
154 changed files with 7761 additions and 1643 deletions

View file

@ -47,4 +47,12 @@ class Airline extends Model
protected $casts = ['contact_emails' => 'array'];
public static function getAsNameIdArray($empty = true){
$ret = Airline::get()->pluck('name', 'id')->toArray();
if($empty){
$first = [null => "-"];
return $first + $ret;
}
return $ret;
}
}