Files
exchange-2.0/app/Console/Kernel.php
T
2024-10-15 21:25:40 +08:00

69 lines
1.9 KiB
PHP

<?php
namespace App\Console;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Storage;
use ZipArchive;
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->command('inspire')->hourly();
// $schedule->command('mail:EmailDoToVTCommand')->dailyAt('10:00')->withoutOverlapping();
// $schedule->command('seasonalSegmantCompany:remove')
// ->dailyAt('01:00')
// ->appendOutputTo(storage_path().'/logs/soft-delete-seasonal-segmant-company.log')
// ->withoutOverlapping();
// $schedule->command('delete:bulk-download-files')
// ->hourly()
// ->appendOutputTo(storage_path().'/logs/delete-bulk-download-files.log')
// ->withoutOverlapping();
// $schedule->command('booking:expired')
// ->dailyAt('02:00')
// ->appendOutputTo(storage_path().'/logs/expire-booking.log')
// ->withoutOverlapping();
// // $schedule->command('purchaseOrder:autoFill')
// // ->dailyAt('03:00')
// // ->withoutOverlapping();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}