From aff4e197c01b3b9725ab978909453ac4203ed4ff Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 27 Nov 2022 19:12:00 +1100 Subject: [PATCH] change private to protected property for middleware key --- app/Services/Bank/BankMatchingService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Services/Bank/BankMatchingService.php b/app/Services/Bank/BankMatchingService.php index ca95cd9a4427..3286fe78ab26 100644 --- a/app/Services/Bank/BankMatchingService.php +++ b/app/Services/Bank/BankMatchingService.php @@ -33,7 +33,7 @@ class BankMatchingService implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; - public function __construct(private int $company_id, private string $db){} + public function __construct(protected int $company_id, private string $db){} public function handle() :void { @@ -51,8 +51,8 @@ class BankMatchingService implements ShouldQueue } - // public function middleware() - // { - // return [new WithoutOverlapping($this->company_id)]; - // } + public function middleware() + { + return [new WithoutOverlapping($this->company_id)]; + } }