Files
ikea/app/Console/Commands/TestOnline.php

38 lines
678 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Http\Controllers\OnlineCompareController;
class OnlinePrices extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'ikea:online';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Online Ikea Prices';
/**
* Execute the console command.
*
* @return int
*/
public function handle(OnlineCompareController $onlineCompareController)
{
//$article = $this->argument('article');
$prices = $onlineCompareController->compare();
dd($prices);
return 0;
}
}