I'm getting this error:
ConsoleKernel.php code
<?php
namespace App\Units;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel;
use App\Console\Commands\EnvioEmailBlCron;
class ConsoleKernel extends Kernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
Commands\Inspire::class,
\App\Console\Commands\EnvioEmailBICron::class
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
*/
protected function schedule(Schedule $schedule)
{
//configuração do cron
$schedule->command('inspire')->dailyAt('01:00');
$schedule->command('envioemailbicron:cron')->daily(); // email diários
}
/**
* Register the Closure based commands for the application.
*/
protected function commands()
{
}
}