| Current Path : /home/users/unlimited/www/egrocer.codeskitter.site/app/Console/ |
| Current File : /home/users/unlimited/www/egrocer.codeskitter.site/app/Console/Kernel.php |
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Jobs\SendCartNotification; // Ensure this import is correct
use App\Console\Commands\SendCartNotificationCommand;
class Kernel extends ConsoleKernel
{
protected $commands = [
SendCartNotificationCommand::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('cart:notification')->everyMinute();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}