chnage according to comment

This commit is contained in:
rahul shukla 2021-02-01 16:40:13 +05:30
parent 4b1109823b
commit c9d09731e1
2 changed files with 5 additions and 3 deletions

View File

@ -25,8 +25,6 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
$schedule->command('booking:cron')->dailyAt('3:00');
$schedule->command('campaign:process')->daily();
}
/**
@ -38,7 +36,6 @@ class Kernel extends ConsoleKernel
{
$this->load(__DIR__.'/Commands');
$this->load(__DIR__.'/../../packages/Webkul/Core/src/Console/Commands');
$this->load(__DIR__.'/../../packages/Webkul/Marketing/src/Console/Commands');
require base_path('routes/console.php');
}

View File

@ -4,6 +4,7 @@ namespace Webkul\Marketing\Providers;
use Illuminate\Support\ServiceProvider;
use Webkul\Marketing\Console\Commands\EmailsCommand;
use Illuminate\Console\Scheduling\Schedule;
class MarketingServiceProvider extends ServiceProvider
{
@ -17,6 +18,10 @@ class MarketingServiceProvider extends ServiceProvider
$this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
$this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');
$this->callAfterResolving(Schedule::class, function (Schedule $schedule) {
$schedule->command('comain:process')->daily();
});
}
/**