Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/app.2/Console/
Upload File :
Current File : /home/aplikasiposinfo/.trash/app.2/Console/Kernel.php

<?php

namespace App\Console;

use App\Models\JenisDenda;
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 = [
        //
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $tanggal_jt = JenisDenda::where(['type'=>'Sanksi Administrasi'])->first()->tanggal_jt;
        $schedule->command('message:monthly')->monthlyOn($tanggal_jt, '08:00');
        // $schedule->command('message:monthly')->everyMinute();
    }

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

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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]