Added Notifications
This commit is contained in:
@@ -12,8 +12,8 @@ class Airline extends Model
|
||||
protected $table = 'airlines';
|
||||
|
||||
protected $fillable = [
|
||||
'IATA_code',
|
||||
'ICAO_code',
|
||||
'iata_code',
|
||||
'icao_code',
|
||||
'name',
|
||||
'internal_name',
|
||||
'country_id',
|
||||
@@ -35,7 +35,7 @@ class Airline extends Model
|
||||
protected function displayName() : Attribute{
|
||||
return Attribute::make(
|
||||
get: function () {
|
||||
$codes = array_filter([$this->IATA_code, $this->ICAO_code]);
|
||||
$codes = array_filter([$this->iata_code, $this->icao_code]);
|
||||
$codeString = count($codes) ? ' (' . implode('/', $codes) . ')' : '';
|
||||
return "{$this->name}{$codeString}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user