From 060ae247f0fbf79fc923666591a52b9191c875f1 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 3 May 2022 13:20:29 +0800 Subject: [PATCH] debug export booking analytics --- .../Exports/Services/ExportsAnalyticBookingTransactions.php | 1 - app/Models/Booking.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsAnalyticBookingTransactions.php b/app/Classes/Modules/Exports/Services/ExportsAnalyticBookingTransactions.php index d7b95220..791c0de3 100644 --- a/app/Classes/Modules/Exports/Services/ExportsAnalyticBookingTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsAnalyticBookingTransactions.php @@ -86,7 +86,6 @@ class ExportsAnalyticBookingTransactions implements FromQuery, WithHeadings, Wit $lastPayment = $booking->transactions()->where('type', 1)->whereIn('status', [2, 3])->orderBy('id', 'desc')->first(); - dump($booking); return [ $booking->id, $booking->company_id, diff --git a/app/Models/Booking.php b/app/Models/Booking.php index 69b8a745..2dfd945a 100644 --- a/app/Models/Booking.php +++ b/app/Models/Booking.php @@ -38,7 +38,7 @@ class Booking extends AbstractModel implements Documentable, Transactionable */ public function company(): BelongsTo { - return $this->BelongsTo(Company::class, 'company_id'); + return $this->BelongsTo(Company::class, 'company_id')->withTrashed(); } /**