From a190c61a72e6602252d980caada011dc96dfd89c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 20 Feb 2023 21:10:37 +1100 Subject: [PATCH] Fixes for N+1 --- app/Models/CompanyGateway.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/CompanyGateway.php b/app/Models/CompanyGateway.php index 42c834d67cb6..d93615ec4bce 100644 --- a/app/Models/CompanyGateway.php +++ b/app/Models/CompanyGateway.php @@ -28,6 +28,10 @@ class CompanyGateway extends BaseModel 'deleted_at' => 'timestamp', ]; + protected $with = [ + 'gateway', + ]; + protected $fillable = [ 'gateway_key', 'accepted_credit_cards',