Print output from CRON at the terminal - Laravel

0

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

    }
}
    
asked by anonymous 31.08.2018 / 17:29

1 answer

1

The echo itself solves your doubts.

    
31.08.2018 / 20:35