Sh3ll
OdayForums


Server : Apache
System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64
User : tradze ( 1001)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/tradze/public_html/test.tradze.com/app_old/Console/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/tradze/public_html/test.tradze.com/app_old/Console/Kernel.php
<?php

namespace App\Console;

use App\Events\CheckExtensionBasketEvent;
use App\Events\CheckBasketEvent;
use App\Events\ApiOverdueBasketEvent;
use App\Events\Event;
use App\Modules\Vouchers\Repositories\VoucherRepository;
use App\Modules\Notifications\Facades\NotifRepository;
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\Inspire::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        //DELTA

        //send mail with voucher package at every 5 minutes
        $schedule->call(function () {
            $voucherRepo = new VoucherRepository();
            $voucherRepo->mail_activate_gift_voucher();
        })->everyMinute();

        $schedule->call(function () {
            \Event::fire(new CheckExtensionBasketEvent());
        })->everyMinute();

        $schedule->call(function () {
            \Event::fire(new ApiOverdueBasketEvent());
        })->everyMinute();

        //send notifications
        $schedule->call(function(){
            NotifRepository::send();
        })->everyMinute();

    }
}

ZeroDay Forums Mini