executeCommand(function () { $todayOrders = TaxiMain::where('cancel_rqst', 0) ->where('taxi_date', (new DateTime())->format('Y-m-d')) ->get() ->toArray(); if (!$todayOrders) { Mail::send(new Mailer( new BaseMailerObj( ) )); echo '
'; var_dump('da'); echo'';
} else {
echo ''; var_dump('net'); echo'';
}
throw new Error('Ошипка!');
}, 'еще инва');
// try {
// throw new Error('Ошипка!');
// } catch (\Throwable $th) {
// \Log::channel('schedule_err')->error($th->getFile() . ": " . $th->getMessage() . " Line: " . $th->getLine());
// }
//$this->info('Daily report generated at ' . now());
return 0;
}
/**
* Get the console command arguments.
*/
protected function getArguments(): array
{
return [
['example', InputArgument::REQUIRED, 'An example argument.'],
];
}
/**
* Get the console command options.
*/
protected function getOptions(): array
{
return [
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
];
}
}