File: /mnt/data/ghayatcom/ghayatcom-api/app/Console/Kernel.php
<?php
namespace App\Console;
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 = [
Commands\AppointmentOneDayBeforeReminderToPatient::class,
Commands\OndemandStatusupdate::class,
//Commands\IdCardVerificationStatusUpdate::class,
Commands\UsersBlockedStatusUpdate::class,
Commands\DependantSixteenReachCommand::class,
Commands\DoctorOnlineStatusUpdate::class,
Commands\HealthProfileReminderNotification::class,
Commands\AppointmentReminderNotification::class,
Commands\AppointmentWeeklyReminder::class,
Commands\AppointmentDailyReminder::class,
Commands\PrescriptionUnuseReminder::class,
Commands\AppointmentBeforeFifteenMinutesReminder::class,
Commands\AppointmentLastSixMonthReminder::class,
Commands\HomeVisitDoctorNotification::class,
Commands\HealthRecordNotCompletedNotification::class,
Commands\HealthProfileMetricsRemider::class,
Commands\HealthProfileMetricsTrackerRemider::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('command:AppointmentOneDayBeforeReminderToPatient')->everyMinute();
// $schedule->command('command:OndemandStatusupdate')->everyMinute();
// $schedule->command('command:IdCardVerificationStatusUpdate')->everyMinute();
// $schedule->command('command:UsersBlockedStatusUpdate')->everyMinute();
// $schedule->command('command:DependantSixteenReachCommand')->daily(); //->daily()
// $schedule->command('command:DoctorOnlineStatusUpdate')->everyMinute();
// $schedule->command('command:HealthProfileReminderNotification')->dailyAt('13:00');
// $schedule->command('command:AppointmentWeeklyReminder')->weekly()->sundays()->at('01:00');
// $schedule->command('command:AppointmentDailyReminder')->dailyAt('06:00');
// $schedule->command('command:HealthProfileMetricsRemider')->dailyAt('00:05');
// $schedule->command('command:HealthProfileMetricsTrackerRemider')->dailyAt('00:05');
// $schedule->command('command:AppointmentDailyReminder')->everyMinute()->sendOutputTo('command1_output.log');
// $schedule->command('command:AppointmentBeforeFifteenMinutesReminder')->everyMinute();
// $schedule->command('command:AppointmentLastSixMonthReminder')->dailyAt('13:00');
// $schedule->command('command:AppointmentReminderNotification')->everyMinute();
// $schedule->command('command:PrescriptionUnuseReminder')->dailyAt('06:00');
// $schedule->command('command:HomeVisitDoctorNotification')->everyMinute();
// $schedule->command('command:HealthRecordNotCompletedNotification')->everyMinute();
// $schedule->command('queue:work --tries=3 --stop-when-empty') ->everyMinute();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}