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