HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
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');
    }
}