File "Kernel.php"

Full Path: /home/trinadezambia/public_html/admin_panel/app/Console/Kernel.php
File size: 1.08 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Console;

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

class Kernel extends ConsoleKernel
{

    protected $commands = [
        Commands\SubscriptionBillCron::class,
        Commands\DeleteNotifications::class,
        Commands\DeleteOldBackups::class
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')->hourly();
        $schedule->command('subscriptionBill:cron')->daily();
        $schedule->command('notifications:delete')->monthly();
        $schedule->command('transport:expiry-reminder')->daily();
        $schedule->command('app:delete-old-backups')->daily();
    }

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

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