Added Notifications

This commit is contained in:
2026-05-10 22:42:37 +10:00
parent 016e752dcd
commit c7fe3268c7
18 changed files with 1386 additions and 50 deletions
+1
View File
@@ -27,6 +27,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
*/
class Achievement extends Model
{
public $timestamps = false;
protected $fillable = [
'name',
'internal_name',
+5
View File
@@ -26,6 +26,11 @@ class Aircraft extends Model
'display_name_short'
];
const array IATA_ALIAS_MAP = [
'7S8' => '73H',
'7S9' => '73J'
];
protected function displayName() : Attribute{
return Attribute::make(
get: function () {
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class IataEquipmentCode extends Model
{
public $timestamps = false;
protected $fillable = [
'iata_code',
'icao_code',
'description',
];
public function aircraft(): HasMany
{
return $this->hasMany(Aircraft::class, 'designator', 'icao_code');
}
}