0
I created a CRON on Laravel and wanted to print information on the terminal where the command is running (Ubuntu terminal, in this case).
What is the command for this in the Laravel?
Example:
public function handle()
{
$digitalCertificates = DB::table('digital_certificates')->get();
$today = new \DateTime();
foreach($digitalCertificates as $digitalCertificate) {
$expirationDate = $digitalCertificate->expirationDate;
$interval = $today->diff($expirationDate)->days;
print($interval); //EXEMPLO. Informação a ser printada no terminal
}
}