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

37 lines
683 B
PHP

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