Try reinstalling with composer
composer install
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Console\Kernel' not found in /var/www/vhosts/gate.rrpo.uz/httpdocs/app/Console/Kernel.php:9 Stack trace: #0 {main} thrown in /var/www/vhosts/gate.rrpo.uz/httpdocs/app/Console/Kernel.php on line 9
This is my app/Console/Kernel.php
<?php
namespace App\Console;
use App\Models\Product;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->call(function(){
Product::send();
})->daily();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}
@kamr How are you running it?
Please or to participate in this conversation.