From addfa6801651e0cef84ce18465e9249c44b8722d Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Tue, 2 Nov 2021 17:54:36 +0300 Subject: [PATCH] Add Aircraft > Simbrief relationship (#1343) --- app/Models/Aircraft.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Aircraft.php b/app/Models/Aircraft.php index a80ddb17..b3b22f01 100644 --- a/app/Models/Aircraft.php +++ b/app/Models/Aircraft.php @@ -130,6 +130,11 @@ class Aircraft extends Model return $this->hasMany(Pirep::class, 'aircraft_id'); } + public function simbriefs() + { + return $this->hasMany(Simbrief::class, 'aircraft_id'); + } + public function subfleet() { return $this->belongsTo(Subfleet::class, 'subfleet_id');