belongsTo(Flight::class, 'flight_id'); } public function user() { return $this->belongsTo(User::class, 'user_id'); } }