Orange Error: [Reflectionexception] Class App Units Commands Inspire does not exist

Asked

Viewed 120 times

-1

I’m getting this mistake:

Code consoleKernel.php

<?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()
    {
    }
}

inserir a descrição da imagem aqui

  • What is the namespace of the class Inspire?

  • I found nothing declared in the class in question..

  • where I find this class?

  • if Inspire is not installed how to proceed ??

1 answer

1


The class Inspire only serves as an example to provide test commands.

Remove it from the array $commands

protected $commands = [    
    \App\Console\Commands\EnvioEmailBICron::class 
];

Browser other questions tagged

You are not signed in. Login or sign up in order to post.