121 lines
4.1 KiB
PHP
121 lines
4.1 KiB
PHP
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use App\Console\Commands\ScrapeMihaaruCommand;
|
|
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 = [
|
|
ScrapeMihaaruCommand::class
|
|
];
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
$schedule->command('scrape:mihaaru')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/mihaaru");
|
|
|
|
$schedule->command('scrape:sun')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/sun");
|
|
|
|
$schedule->command('scrape:avas')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/avas");
|
|
|
|
$schedule->command('scrape:dhuvas')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/dhuvas");
|
|
|
|
$schedule->command('scrape:thiladhun')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/thiladhun");
|
|
|
|
$schedule->command('scrape:thepress')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/thepress");
|
|
|
|
$schedule->command('scrape:addulive')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/addulive");
|
|
|
|
$schedule->command('scrape:voice')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/voice");
|
|
|
|
$schedule->command('scrape:dhen')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/dhen");
|
|
|
|
$schedule->command('scrape:psm')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/psm");
|
|
|
|
$schedule->command('scrape:oneonline')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/oneonline");
|
|
|
|
$schedule->command('scrape:feshun')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/feshun");
|
|
|
|
$schedule->command('scrape:miadhu')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/miadhu");
|
|
|
|
$schedule->command('scrape:vnews')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/vnews");
|
|
|
|
$schedule->command('scrape:hama')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/hama");
|
|
|
|
$schedule->command('scrape:raajjemv')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/raajjemv");
|
|
|
|
$schedule->command('scrape:funadhoo-times')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/funadhoo-times");
|
|
|
|
$schedule->command('scrape:zaviyani')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/zaviyani");
|
|
|
|
$schedule->command('scrape:jazeera')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/jazeera");
|
|
|
|
$schedule->command('scrape:dhiyares')->everyFifteenMinutes()
|
|
->runInBackground()
|
|
->pingOnSuccess(env('APP_URL') . "/api/ping/dhiyares");
|
|
}
|
|
|
|
/**
|
|
* Register the commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
$this->load(__DIR__ . '/Commands');
|
|
|
|
require base_path('routes/console.php');
|
|
}
|
|
}
|