App\Console\Commands\CheckData::fire PHP Method

fire() public method

public fire ( )
    public function fire()
    {
        $this->logMessage(date('Y-m-d') . ' Running CheckData...');
        if (!$this->option('client_id')) {
            $this->checkPaidToDate();
            $this->checkBlankInvoiceHistory();
        }
        $this->checkBalances();
        if (!$this->option('client_id')) {
            $this->checkAccountData();
        }
        $this->logMessage('Done');
        $errorEmail = env('ERROR_EMAIL');
        if (!$this->isValid && $errorEmail) {
            Mail::raw($this->log, function ($message) use($errorEmail) {
                $message->to($errorEmail)->from(CONTACT_EMAIL)->subject('Check-Data');
            });
        }
    }