MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/celkcksm/jrset.ncriptech.com/../cms.ncriptech.com/app/Console/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/jrset.ncriptech.com/../cms.ncriptech.com/app/Console/Kernel.php
<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Models\ScheduleSetting;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        //
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule_setting = ScheduleSetting::where('slug', 'fees-schedule')->first();
        if(isset($schedule_setting)){
            if($schedule_setting->time){
                $schedule->command('fees:reminder')
                     ->dailyAt($schedule_setting->time);
            }else{
                $schedule->command('fees:reminder')
                     ->dailyAt('00:01');
            }
        }

        $schedule->command('notice:send')
                ->dailyAt('01:01');

        $schedule->command('content:send')
                ->dailyAt('02:01');
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}

MMCT - 2023