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 processRules() { (new ProcessBankRules($this->bank_transaction))->run(); } }