From eaf9d73d59250fddfa8d810a42b1bf5e1d4954c1 Mon Sep 17 00:00:00 2001 From: Haziq Danial Date: Wed, 14 Jul 2021 15:53:36 +0800 Subject: [PATCH] push company credit rating --- app/Models/Booking.php | 6 +++--- routes/web.php | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/Models/Booking.php b/app/Models/Booking.php index 33c33341..be7b13ed 100644 --- a/app/Models/Booking.php +++ b/app/Models/Booking.php @@ -98,9 +98,9 @@ class Booking extends AbstractModel implements Documentable protected static function booted() { - if (auth()->user()->type === RoleTypes::USER) { - static::addGlobalScope(new CustomerBookingsScope); - } +// if (auth()->user()->type === RoleTypes::USER) { +// static::addGlobalScope(new CustomerBookingsScope); +// } } diff --git a/routes/web.php b/routes/web.php index 277cfb8f..2817c6fc 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,6 @@