trigger = $trigger; $this->journal = $journal; } /** * @return bool */ public function triggered() { $fromAccountName = strtolower($this->journal->source_account->name); $search = strtolower($this->trigger->trigger_value); if ($fromAccountName == $search) { Log::debug('"' . $fromAccountName . '" equals "' . $search . '" exactly. Return true.'); return true; } Log::debug('"' . $fromAccountName . '" does not equal "' . $search . '". Return false.'); return false; } }