I created a CRON in Laravel and wanted to print information on the terminal where the command is running (Ubuntu terminal, in that case).
What is the command for this in 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
}
}