Added Notifications

This commit is contained in:
2026-06-05 10:10:37 +10:00
parent 09841ba1f7
commit 906f8cda57
16 changed files with 61 additions and 34 deletions
+3 -3
View File
@@ -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}";
}