bank_transaction->description) > 1) { $i = Invoice::where('company_id', $this->bank_transaction->company_id) ->whereIn('status_id', [1,2,3]) ->where('is_deleted', 0) ->where('number', 'LIKE', '%'.$this->bank_transaction->description.'%') ->first(); return $i ?: false; } return false; } public function processRule($rule) { (new ProcessBankRule($this->bank_transaction, $rule))->run(); return $this; } }