From 411ee579468be1d9b86f8f7357b5c36e7539dff9 Mon Sep 17 00:00:00 2001 From: jayvirsinh_gohil Date: Fri, 15 Jan 2021 14:26:35 +0530 Subject: [PATCH] solve date issue --- app/Models/Estimate.php | 4 +--- app/Models/Invoice.php | 4 +--- app/Models/Payment.php | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/Models/Estimate.php b/app/Models/Estimate.php index a3fa3132..2ee52583 100644 --- a/app/Models/Estimate.php +++ b/app/Models/Estimate.php @@ -33,9 +33,7 @@ class Estimate extends Model implements HasMedia protected $dates = [ 'created_at', 'updated_at', - 'deleted_at', - 'estimate_date', - 'expiry_date' + 'deleted_at' ]; protected $appends = [ diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index f0d36616..f92f95f8 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -39,9 +39,7 @@ class Invoice extends Model implements HasMedia protected $dates = [ 'created_at', 'updated_at', - 'deleted_at', - 'invoice_date', - 'due_date' + 'deleted_at' ]; protected $casts = [ diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 0845ea80..d70d3d03 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -31,7 +31,7 @@ class Payment extends Model implements HasMedia const PAYMENT_MODE_CREDIT_CARD = 'CREDIT_CARD'; const PAYMENT_MODE_BANK_TRANSFER = 'BANK_TRANSFER'; - protected $dates = ['created_at', 'updated_at', 'payment_date']; + protected $dates = ['created_at', 'updated_at']; protected $guarded = ['id'];