Added Notifications
This commit is contained in:
@@ -27,6 +27,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
*/
|
||||
class Achievement extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'internal_name',
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user