api code global jain
This commit is contained in:
45
app/Console/Kernel.php
Normal file
45
app/Console/Kernel.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user