Files
Global-Jain/app/Console/Kernel.php
2025-11-05 10:37:10 +05:30

46 lines
1.3 KiB
PHP

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use App\Console\Commands\ReplaceVihaarEndLocation;
use App\Console\Commands\AddProfileCompletionPercentage;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Console\Commands\AddSantProfileCompletionPercentage;
class Kernel extends ConsoleKernel
{
protected $commands = [
ReplaceVihaarEndLocation::class,
AddProfileCompletionPercentage::class,
AddSantProfileCompletionPercentage::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('telescope:clear')->daily();
$schedule->command('check:vihaar')->hourly();
$schedule->command('download:new-app')->twiceDaily(9, 20);
$schedule->command('generate:memberid')->sundays()->at('10:00');
// $schedule->command('generate:memberid')->everyFiveMinutes();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}