Files
gsf/app/Console/Kernel.php
vedant-chavan 20f55281ef save to codehub
2024-08-09 17:11:41 +05:30

47 lines
1.3 KiB
PHP

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected $commands = [
Commands\UpdateTableColumnCommand::class,
Commands\StoreMonthlyPositions::class,
Commands\MoodOMeterNotification::class,
Commands\DeleteNotification::class,
Commands\PushNotification::class,
];
protected function schedule(Schedule $schedule)
{
$schedule->command('update:column')->dailyAt('09:00')->timezone('Asia/Kolkata');
$schedule->command('positions:store-monthly')->lastOfMonth('23:59');
$schedule->command('mood-o-meter:send-daily')->dailyAt('09:00')->timezone('Asia/Kolkata');
$schedule->command('delete:old-notification')->daily();
$schedule->command('send:notification_daily')->dailyAt('07:00')->timezone('Asia/Kolkata');
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}