46 lines
981 B
PHP
46 lines
981 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\ScrapingDataJob;
|
|
use App\Models\ImportDatasource;
|
|
use App\Services\ServiceGoogleSheet;
|
|
use App\Services\ServicePbgTask;
|
|
use App\Services\ServiceTabPbgTask;
|
|
use App\Services\ServiceTokenSIMBG;
|
|
use GuzzleHttp\Client; // Import Guzzle Client
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Support\Facades\Log;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class ScrapingData extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'app:scraping-data';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Command description';
|
|
/**
|
|
* Inject dependencies.
|
|
*/
|
|
public function __construct(
|
|
) {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function handle()
|
|
{
|
|
dispatch(new ScrapingDataJob());
|
|
|
|
$this->info("Scraping job dispatched successfully");
|
|
}
|
|
}
|